正在显示
1 个修改的文件
包含
3 行增加
和
6 行删除
| @@ -11,7 +11,7 @@ use think\Exception; | @@ -11,7 +11,7 @@ use think\Exception; | ||
| 11 | */ | 11 | */ |
| 12 | class Client extends Api | 12 | class Client extends Api |
| 13 | { | 13 | { |
| 14 | - protected $noNeedLogin = ['']; | 14 | + protected $noNeedLogin = ['getactivity','participate_activitie']; |
| 15 | protected $noNeedRight = ['*']; | 15 | protected $noNeedRight = ['*']; |
| 16 | protected $postParam; | 16 | protected $postParam; |
| 17 | protected $store_id; | 17 | protected $store_id; |
| @@ -37,17 +37,14 @@ class Client extends Api | @@ -37,17 +37,14 @@ class Client extends Api | ||
| 37 | $this->error("门店不存在,请退出登录后重试!"); | 37 | $this->error("门店不存在,请退出登录后重试!"); |
| 38 | } | 38 | } |
| 39 | $this->store = $store; | 39 | $this->store = $store; |
| 40 | - if (empty($this->auth->id)) { | ||
| 41 | - $this->error("非法操作,用户信息为空"); | ||
| 42 | - | ||
| 43 | - } | 40 | + |
| 44 | 41 | ||
| 45 | } | 42 | } |
| 46 | /** | 43 | /** |
| 47 | * 1、获取活动 | 44 | * 1、获取活动 |
| 48 | */ | 45 | */ |
| 49 | public function getactivity(){ | 46 | public function getactivity(){ |
| 50 | - $this->success('123',$this->auth->id); | 47 | + |
| 51 | //根据门店查询活动 | 48 | //根据门店查询活动 |
| 52 | $time=time(); | 49 | $time=time(); |
| 53 | $where["closetime"] = [">", $time]; | 50 | $where["closetime"] = [">", $time]; |
-
请 注册 或 登录 后发表评论