'ID', 'mall_id' => 'Mall ID', 'user_id' => 'User ID', 'children_order_pay_profit' => 'Children Order Pay Profit', 'team_order_pay_profit' => 'Team Order Pay Profit', 'children_order_finish_profit' => 'Children Order Finish Profit', 'team_order_finish_profit' => 'Team Order Finish Profit', 'created_at' => 'Created At', 'updated_at' => 'Updated At', ]; } public static function setData(array $data) { try { $model = new self(); $model->loadDefaultValues(); if (!$model->load($data, '') || !$model->save()) { throw new \Exception($model->getErrorMessage()); } return $model; } catch (\Exception $e) { self::setStaticError($e->getMessage()); return false; } } }