1.优化设备只能登录一个
This commit is contained in:
@@ -12,6 +12,7 @@ use app\common\model\UserScoreLog;
|
||||
use app\common\model\UserMoneyLog;
|
||||
use app\common\controller\Frontend;
|
||||
use app\common\facade\Token as TokenFacade;
|
||||
use app\common\service\MobileAuthDeviceService;
|
||||
use support\think\Db;
|
||||
use support\validation\Validator;
|
||||
use support\validation\ValidationException;
|
||||
@@ -44,6 +45,10 @@ class Account extends Frontend
|
||||
|
||||
$user = $this->auth->getUser();
|
||||
$userId = intval(strval($user->id));
|
||||
$deviceError = MobileAuthDeviceService::validateUserDeviceSession($authToken, $userId);
|
||||
if ($deviceError !== null) {
|
||||
return $this->mobileResult(1101, $deviceError);
|
||||
}
|
||||
$coinBalance = WithdrawFlow::amountString($user->coin ?? '0');
|
||||
|
||||
// 打码量 / 提现配额快照
|
||||
|
||||
Reference in New Issue
Block a user