作者 李铮

预约优化

... ... @@ -621,6 +621,8 @@ class Sun extends Api
{
$Params = $this->request->param();
$UserID = $this->IsToken();
if($this->auth->vip == 0) $this->error('请先成为会员后再预约');
if($this->auth->exp_time < time()) $this->error('会员已过期');
/*超过最大次数拦截*/
$this->CountNum($UserID, $Params['id']);
/*更改预约列表状态/新增预约单*/
... ...
... ... @@ -26,7 +26,7 @@ class Auth
//默认配置
protected $config = [];
protected $options = [];
protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar', 'score'];
protected $allowFields = ['id', 'username', 'nickname', 'mobile', 'avatar', 'score', 'vip', 'exp_time'];
public function __construct($options = [])
{
... ...