...
|
...
|
@@ -11,7 +11,7 @@ use think\Exception; |
|
|
*/
|
|
|
class Client extends Api
|
|
|
{
|
|
|
protected $noNeedLogin = ['getactivity','participate_activitie'];
|
|
|
protected $noNeedLogin = ['*'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
protected $postParam;
|
|
|
protected $store_id;
|
...
|
...
|
@@ -37,14 +37,14 @@ class Client extends Api |
|
|
$this->error("门店不存在,请退出登录后重试!");
|
|
|
}
|
|
|
$this->store = $store;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
/**
|
|
|
* 1、获取活动
|
|
|
*/
|
|
|
public function getactivity(){
|
|
|
|
|
|
|
|
|
//根据门店查询活动
|
|
|
$time=time();
|
|
|
$where["closetime"] = [">", $time];
|
...
|
...
|
@@ -194,7 +194,7 @@ class Client extends Api |
|
|
$order_no=$time.rand(10000,99999);
|
|
|
$verification_store_id=$this->store_id;
|
|
|
$user_id=$this->auth->id;
|
|
|
|
|
|
|
|
|
$createtime=$time;
|
|
|
$type=0;
|
|
|
//整理数组
|
...
|
...
|
|