作者 郭文星

'13123'

@@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
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;
6 use think\Db; 7 use think\Db;
7 use think\Exception; 8 use think\Exception;
8 9
@@ -38,16 +39,17 @@ class Client extends Api @@ -38,16 +39,17 @@ class Client extends Api
38 } 39 }
39 $this->store = $store; 40 $this->store = $store;
40 if (empty($this->auth->id)) { 41 if (empty($this->auth->id)) {
41 -  
42 - return;  
43 - } 42 + $this->error("非法操作,用户信息为空");
  43 + }
44 44
45 } 45 }
46 /** 46 /**
47 * 1、获取活动 47 * 1、获取活动
48 */ 48 */
49 public function getactivity(){ 49 public function getactivity(){
50 - $this->success('123',$this->auth->id); 50 + $data = Token::get("0914XD000vOw4Q1BS2300IDZ9P04XD0b");
  51 +
  52 + $this->success('123',$data);
51 //根据门店查询活动 53 //根据门店查询活动
52 $time=time(); 54 $time=time();
53 $where["closetime"] = [">", $time]; 55 $where["closetime"] = [">", $time];