作者 郭文星

'123123'

... ... @@ -24,7 +24,7 @@ class Business extends Api
$postParam = $this->request->param();
$this->postParam = $postParam;
parent::_initialize();
//$this->auth->id=3 ;//测试用
$this->auth->id=3 ;//测试用
$postParam = $this->request->param();
$this->postParam = $postParam;
if (empty($postParam['store_id'])) {
... ...
... ... @@ -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;
//整理数组
... ...