|
|
|
@ -12,20 +12,18 @@ declare (strict_types=1); |
|
|
|
|
|
|
|
|
|
namespace app\api\service\passport; |
|
|
|
|
|
|
|
|
|
use think\facade\Cache; |
|
|
|
|
use yiovo\captcha\facade\CaptchaApi; |
|
|
|
|
use app\api\model\{ |
|
|
|
|
User as UserModel, |
|
|
|
|
use app\api\model\{dealer\Referee as RefereeModel, |
|
|
|
|
Setting as SettingModel, |
|
|
|
|
UploadFile as UploadFileModel, |
|
|
|
|
dealer\Referee as RefereeModel |
|
|
|
|
}; |
|
|
|
|
use app\api\service\{user\Oauth as OauthService, passport\Party as PartyService}; |
|
|
|
|
User as UserModel}; |
|
|
|
|
use app\api\service\{passport\Party as PartyService, user\Oauth as OauthService}; |
|
|
|
|
use app\api\validate\passport\Login as ValidateLogin; |
|
|
|
|
use app\common\service\BaseService; |
|
|
|
|
use app\common\enum\Client as ClientEnum; |
|
|
|
|
use app\common\enum\Setting as SettingEnum; |
|
|
|
|
use app\common\service\BaseService; |
|
|
|
|
use cores\exception\BaseException; |
|
|
|
|
use think\facade\Cache; |
|
|
|
|
use yiovo\captcha\facade\CaptchaApi; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 服务类:用户登录 |
|
|
|
@ -196,7 +194,7 @@ class Login extends BaseService |
|
|
|
|
$loginData = [ |
|
|
|
|
'mobile' => $plainData['purePhoneNumber'], |
|
|
|
|
'isParty' => $form['isParty'], |
|
|
|
|
'partyData' => $form['partyData'], |
|
|
|
|
'partyData' => !empty($form['partyData']) ?: [], |
|
|
|
|
'refereeId' => $form['refereeId'] ?? null |
|
|
|
|
]; |
|
|
|
|
// 自动登录注册 |
|
|
|
|