| | |
| | | use app\shop\model\branch\Category as CategoryModel; |
| | | use app\shop\model\user\User as UserModel; |
| | | use app\common\service\qrcode\BranchActivityService; |
| | | use app\common\model\branch\ActivityProductPrice as ActivityProductPriceModel; |
| | | |
| | | /** |
| | | * 活动控制器 |
| | |
| | | $tem_act_date[1] = date("Y-m-d H:i:s",$model['activity_end_time']); |
| | | $model['act_date'] = $tem_act_date; |
| | | $model['coordinate'] = $model['latitude'] . ',' . $model['longitude']; |
| | | // 获取核销人员数据 |
| | | $model['verify_user'] = []; |
| | | if ($model['verify_user_ids']) { |
| | | $model['verify_user'] = UserModel::getUserByIds($model['verify_user_ids'], ['avatarUrl', 'nickName']); |
| | | } |
| | | $model['product_list'] = (new ActivityProductPriceModel())->getProductPricelist($activity_id); |
| | | |
| | | return $this->renderSuccess('', compact('catgory', 'model')); |
| | | } |