update 商户登录返回商户信息

This commit is contained in:
chenbo 2023-12-09 16:50:36 +08:00
parent b04bca9d80
commit b10c7ad25b

View File

@ -56,6 +56,7 @@ class Login extends BaseController
$msg = '账号或密码错误';
throw new ValidateException($msg);
}
$user['merchant'] = Db::name('merchant')->where('uid', $user['uid'])->find();
$expire = time()+ 3600 * 24;
$token = md5($expire);
// 缓存token