pull/1/head
wanghousheng 12 months ago
parent 88697375a6
commit 0cee5b1aba
  1. 4
      app/api/service/passport/Login.php

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

Loading…
Cancel
Save