作者 郭文星

'213'

@@ -22,6 +22,8 @@ class Client extends Api @@ -22,6 +22,8 @@ class Client extends Api
22 $postParam = $this->request->param(); 22 $postParam = $this->request->param();
23 $this->postParam = $postParam; 23 $this->postParam = $postParam;
24 24
  25 + $res=$this->request->header();
  26 + print_r($res);
25 parent::_initialize(); 27 parent::_initialize();
26 $this->auth->id ;//测试用 28 $this->auth->id ;//测试用
27 $postParam = $this->request->param(); 29 $postParam = $this->request->param();
@@ -36,7 +38,8 @@ class Client extends Api @@ -36,7 +38,8 @@ class Client extends Api
36 } 38 }
37 $this->store = $store; 39 $this->store = $store;
38 if (empty($this->auth->id)) { 40 if (empty($this->auth->id)) {
39 - $this->error("暂无权限!"); 41 + print_r([$this->auth->id,$this->auth->getUserinfo()]);
  42 + return;
40 } 43 }
41 44
42 } 45 }
@@ -44,8 +47,7 @@ class Client extends Api @@ -44,8 +47,7 @@ class Client extends Api
44 * 1、获取活动 47 * 1、获取活动
45 */ 48 */
46 public function getactivity(){ 49 public function getactivity(){
47 - print_r($this->auth->id);  
48 - return; 50 +
49 //根据门店查询活动 51 //根据门店查询活动
50 $time=time(); 52 $time=time();
51 $where["closetime"] = [">", $time]; 53 $where["closetime"] = [">", $time];