作者 chencheng

2

... ... @@ -11,7 +11,7 @@ use think\Exception;
*/
class Client extends Api
{
protected $noNeedLogin = [''];
protected $noNeedLogin = ['getactivity','participate_activitie'];
protected $noNeedRight = ['*'];
protected $postParam;
protected $store_id;
... ... @@ -37,17 +37,14 @@ class Client extends Api
$this->error("门店不存在,请退出登录后重试!");
}
$this->store = $store;
if (empty($this->auth->id)) {
$this->error("非法操作,用户信息为空");
}
}
/**
* 1、获取活动
*/
public function getactivity(){
$this->success('123',$this->auth->id);
//根据门店查询活动
$time=time();
$where["closetime"] = [">", $time];
... ...