1、修改两处手误bug

2、api接口更新
This commit is contained in:
2018-04-10 12:18:30 +08:00
parent 06f3d9dd38
commit b253b538d8
6 changed files with 75 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ class Api {
$token = authcode($header['accesstoken']);
list($uid, $username, $password) = explode('|', $token);
$this->user = model('Member')->where('uid', $uid)->where('username', $username)->find();
if ($this->user && $password === $this->user['password']) {
return true;
}else{