255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'title' => '小程序标题', 'type' => '1.天 2 用户', 'probability' => '概率', 'oppty' => '抽奖次数', 'start_at' => '开始时间', 'end_at' => '结束时间', 'deplete_integral_num' => '消耗积分', 'rule' => '规则', 'background_imgs' => '背景图', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'payment_type' => '支付方式', 'send_type' => '发货方式', 'is_sms' => '开启短信提醒', 'is_wechat' => '开启微信推送提醒', 'is_mail' => '开启邮件提醒', 'is_print' => '开启打印', ]; } /** * 背景图默认配置 * @throws \Exception */ public static function getBackgroundImgs() { try { $background_imgs = [ 'color' => '', 'image'=> \Yii::$app->request->hostInfo . '/resources/addons/scratch/img/index-bg.png' ]; return $background_imgs; } catch (\Exception $exception) { throw new \Exception($exception->getMessage()); } } }