|
|
@@ -1361,11 +1361,14 @@ class LoginController extends Controller
|
|
|
}
|
|
|
|
|
|
if ($mapping && !empty($mapping) && isset($mapping->game_id) && $mapping->game_id) {
|
|
|
+ $defaultGameId = $mapping->game_id;
|
|
|
$recommendGame = '/game/' . $mapping->game_id;
|
|
|
}
|
|
|
$guser['recommendGame'] = $recommendGame;
|
|
|
}
|
|
|
|
|
|
+ AccountsInfo::where('UserID', $UserID)->update(['UserMedal' => $defaultGameId ]);
|
|
|
+
|
|
|
Util::WriteLog('register_params',[$request,$guser]);
|
|
|
return response()->json(apiReturnSuc($guser, ['reg.success', 'Registro realizado com sucesso!']));//->withCookie($this->setLoginCookie($guser['sign']));
|
|
|
}
|