|
|
@ -24,7 +24,6 @@ use app\common\enum\Setting as SettingEnum; |
|
|
|
use app\common\service\BaseService; |
|
|
|
use app\common\service\BaseService; |
|
|
|
use cores\exception\BaseException; |
|
|
|
use cores\exception\BaseException; |
|
|
|
use think\facade\Cache; |
|
|
|
use think\facade\Cache; |
|
|
|
use yiovo\captcha\facade\CaptchaApi; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 服务类:用户登录 |
|
|
|
* 服务类:用户登录 |
|
|
@ -330,7 +329,10 @@ class Login extends BaseService |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// 推荐人ID |
|
|
|
// 推荐人ID |
|
|
|
$refereeId = !empty($data['refereeId']) ?? null; |
|
|
|
$refereeId = 0; |
|
|
|
|
|
|
|
if (!empty($data['refereeId'])) { |
|
|
|
|
|
|
|
$refereeId = intval($data['refereeId']); |
|
|
|
|
|
|
|
} |
|
|
|
// 用户不存在: 创建一个新用户 |
|
|
|
// 用户不存在: 创建一个新用户 |
|
|
|
$this->createUser($data['mobile'], $data['isParty'], $data['partyData'], $refereeId); |
|
|
|
$this->createUser($data['mobile'], $data['isParty'], $data['partyData'], $refereeId); |
|
|
|
} |
|
|
|
} |
|
|
|