优化登录名称

master
chenzhi 3 years ago
parent b4db0d578b
commit 4628ee8a00

@ -34,7 +34,7 @@ class MemberModel extends Model {
*/
public function login($uid){
/* 检测是否在当前应用注册 */
$user = $this->field(true)->find($uid);
$user = SM("Member","sys_")->field(true)->find($uid);
if(!$user || 1 != $user['status']) {
$this->error = '用户不存在或已被禁用!'; //应用级别禁用
return false;

Loading…
Cancel
Save