1.缺失信息提交

This commit is contained in:
2025-05-08 15:23:39 +08:00
parent 5e9d035129
commit d931fb657b

View File

@ -137,10 +137,11 @@ class LoginLogic extends BaseLogic
} catch (Exception $e) {
self::setError('登录失败:' . $e->getMessage());
return false;
} catch (\think\Exception $e) {
self::setError('登录失败:' . $e->getMessage());
return false;
}
// catch (\think\Exception $e) {
// self::setError('登录失败:' . $e->getMessage());
// return false;
// }
if (empty($user_id)) {
$user_info = UserServer::createUser($response, Client_::mnp);
@ -211,7 +212,7 @@ class LoginLogic extends BaseLogic
*/
public static function getUserByWechatResponse($response)
{
$user_id = Db::name('user_auth au')
$user_id = Db::name('user_auth')->field("au")
->join('user u', 'au.user_id=u.id')
->where(['u.del' => 0])
->where(function ($query) use ($response) {