作者 郭文星

'123123'

@@ -24,7 +24,7 @@ class Business extends Api @@ -24,7 +24,7 @@ class Business extends Api
24 $postParam = $this->request->param(); 24 $postParam = $this->request->param();
25 $this->postParam = $postParam; 25 $this->postParam = $postParam;
26 parent::_initialize(); 26 parent::_initialize();
27 - //$this->auth->id=3 ;//测试用 27 + $this->auth->id=3 ;//测试用
28 $postParam = $this->request->param(); 28 $postParam = $this->request->param();
29 $this->postParam = $postParam; 29 $this->postParam = $postParam;
30 if (empty($postParam['store_id'])) { 30 if (empty($postParam['store_id'])) {
@@ -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 = ['getactivity','participate_activitie']; 14 + protected $noNeedLogin = ['*'];
15 protected $noNeedRight = ['*']; 15 protected $noNeedRight = ['*'];
16 protected $postParam; 16 protected $postParam;
17 protected $store_id; 17 protected $store_id;
@@ -37,14 +37,14 @@ class Client extends Api @@ -37,14 +37,14 @@ class Client extends Api
37 $this->error("门店不存在,请退出登录后重试!"); 37 $this->error("门店不存在,请退出登录后重试!");
38 } 38 }
39 $this->store = $store; 39 $this->store = $store;
40 - 40 +
41 41
42 } 42 }
43 /** 43 /**
44 * 1、获取活动 44 * 1、获取活动
45 */ 45 */
46 public function getactivity(){ 46 public function getactivity(){
47 - 47 +
48 //根据门店查询活动 48 //根据门店查询活动
49 $time=time(); 49 $time=time();
50 $where["closetime"] = [">", $time]; 50 $where["closetime"] = [">", $time];
@@ -194,7 +194,7 @@ class Client extends Api @@ -194,7 +194,7 @@ class Client extends Api
194 $order_no=$time.rand(10000,99999); 194 $order_no=$time.rand(10000,99999);
195 $verification_store_id=$this->store_id; 195 $verification_store_id=$this->store_id;
196 $user_id=$this->auth->id; 196 $user_id=$this->auth->id;
197 - 197 +
198 $createtime=$time; 198 $createtime=$time;
199 $type=0; 199 $type=0;
200 //整理数组 200 //整理数组