From a642e157014a9e8d30f342f527dd0500e1557589 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Wed, 31 Jan 2024 21:54:52 +0800 Subject: [PATCH] 1 --- app/api/service/passport/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/service/passport/Login.php b/app/api/service/passport/Login.php index cc5acf00..11048c19 100644 --- a/app/api/service/passport/Login.php +++ b/app/api/service/passport/Login.php @@ -191,7 +191,7 @@ class Login extends BaseService // 解密encryptedData -> 拿到手机号 $plainData = OauthService::wxDecryptData($form['encryptedData'], $form['iv'], $wxSession['session_key']); // 整理登录注册数据 - if (!empty($form['partyData']['oauth'])) { + if (empty($form['partyData']['oauth'])) { $form['partyData']['oauth'] = 'MP-WEIXIN'; } $loginData = [