作者 王智

1111

... ... @@ -332,7 +332,7 @@ class Api
if (empty($token['authorization'])) {
$this->error('请登录后在操作', '', 401);
}
$is_token = Db::name('user')->where(['token' => $token['Authorization']])->find();
$is_token = Db::name('user')->where(['token' => $token['uthorization']])->find();
if (!$is_token) {
$this->error('登陆已过期,请重新登陆', '', 90001);
}
... ... @@ -343,10 +343,10 @@ class Api
//检测Token 商家
protected function IsTokenSeller($token)
{
if (empty($token['token'])) {
if (empty($token['authorization'])) {
$this->error('请登录后在操作', '', 401);
}
$is_token = Db::name('seller')->where(['token' => $token['Authorization']])->find();
$is_token = Db::name('seller')->where(['token' => $token['authorization']])->find();
if (!$is_token) {
$this->error('登陆已过期,请重新登陆', '', 90001);
}
... ...