|
|
|
@ -191,12 +191,14 @@ class Login extends BaseService |
|
|
|
|
// 解密encryptedData -> 拿到手机号 |
|
|
|
|
$plainData = OauthService::wxDecryptData($form['encryptedData'], $form['iv'], $wxSession['session_key']); |
|
|
|
|
// 整理登录注册数据 |
|
|
|
|
if (!empty($form['partyData']['oauth'])) { |
|
|
|
|
$form['partyData']['oauth'] = 'MP-WEIXIN'; |
|
|
|
|
} |
|
|
|
|
$loginData = [ |
|
|
|
|
'mobile' => $plainData['purePhoneNumber'], |
|
|
|
|
'isParty' => $form['isParty'], |
|
|
|
|
'partyData' => $form['partyData'], |
|
|
|
|
'refereeId' => $form['refereeId'] ?? null, |
|
|
|
|
'oauth' => 'MP-WEIXIN', |
|
|
|
|
]; |
|
|
|
|
// 自动登录注册 |
|
|
|
|
$this->register($loginData); |
|
|
|
|