...
|
...
|
@@ -3,7 +3,6 @@ |
|
|
namespace app\api\controller\v1;
|
|
|
|
|
|
use app\common\controller\Api;
|
|
|
use app\common\library\Token;
|
|
|
use think\Db;
|
|
|
use think\Exception;
|
|
|
|
...
|
...
|
@@ -12,7 +11,6 @@ use think\Exception; |
|
|
*/
|
|
|
class Client extends Api
|
|
|
{
|
|
|
protected $noNeedLogin = ['*'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
protected $postParam;
|
|
|
protected $store_id;
|
...
|
...
|
@@ -39,6 +37,8 @@ class Client extends Api |
|
|
}
|
|
|
$this->store = $store;
|
|
|
if (empty($this->auth->id)) {
|
|
|
$this->error("非法操作,用户信息为空");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
@@ -46,9 +46,7 @@ class Client extends Api |
|
|
* 1、获取活动
|
|
|
*/
|
|
|
public function getactivity(){
|
|
|
$data = Token::get("0914XD000vOw4Q1BS2300IDZ9P04XD0b");
|
|
|
|
|
|
$this->success('123',$data);
|
|
|
$this->success('123',$this->auth->id);
|
|
|
//根据门店查询活动
|
|
|
$time=time();
|
|
|
$where["closetime"] = [">", $time];
|
...
|
...
|
|