100], [['delivery_file'], 'string', 'max' => 500], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'operator_id' => 'Operator ID', 'operator_name' => 'Operator Name', 'delivery_file' => 'Delivery File', 'express_id' => 'Express ID', 'express_name' => 'Express Name', 'delivery_num' => 'Delivery Num', 'success_delivery_num' => 'Success Delivery Num', 'delivery_status' => 'Delivery Status', 'status' => 'Status', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public static function setData($mall_id, $params) { try { $mobel = new self(); $mobel->mall_id = $mall_id; if (!$mobel->load($params, '') || !$mobel->save()) throw new \Exception($mobel->getErrorMessage()); return $mobel; } catch (\Exception $e) { self::setStaticError($e->getMessage()); return false; } } }