1000], [['expend_type'], 'string', 'max' => 50], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'id', 'mall_id' => '商城ID', 'activity_id' => '活动ID', 'goods_id' => '商品ID', 'order_id' => '订单ID', 'win_order_ids' => '本次开奖拼中订单', 'group_require_num' => '开团需要人数', 'virtual_num' => '活动设置的虚拟人数', 'real_group_require_num' => '真实开团需要人数', 'attend_order_num' => '本次可开奖订单数(人数)', 'expend_type' => '消耗类型', 'expend_num' => '消耗量', 'win_reward_scores' => '拼中奖励积分', 'win_reward_balances' => '拼中奖励余额', 'distribute_bonus_pool_amounts' => '分配奖金池金额', 'attend_reward_amounts' => '成团金额', 'status' => '状态[-1:删除;0:禁用;1启用]', 'created_at' => '创建时间', 'updated_at' => 'Updated At', ]; } public static function setData($params) { try { $model = new LuckyGroupOpenRewardLog(); $model->loadDefaultValues(); if (!$model->load($params, '') || !$model->save()) throw new \Exception($model->getErrorMessage()); return $model; } catch (\Exception $e) { var_dump($e->getMessage().$e->getFile()); self::$static_error = $e->getMessage(); return false; } } }