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