机器设备名
This commit is contained in:
@@ -36,6 +36,9 @@ import DeviceIdService from "db://assets/Scripts/chat18x/foundation/identity/Dev
|
||||
import { AuthService } from "db://assets/Scripts/chat18x/network/services/AuthService";
|
||||
import { ApiCode } from "db://assets/Scripts/chat18x/network/client/types";
|
||||
|
||||
import MachineInfoService from "db://assets/Scripts/chat18x/foundation/identity/MachineInfoService";
|
||||
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass("PreloadUI")
|
||||
@@ -256,15 +259,17 @@ export class PreloadUI extends Component {
|
||||
|
||||
// 游客登录
|
||||
const deviceId = DeviceIdService.I.id;
|
||||
const machineIdentifier = MachineInfoService.I.getMachineIdentifier();
|
||||
const reqData = {
|
||||
GameName: ConfigManager.tables.TbGlobalConfig.GameName,
|
||||
Identifier: deviceId,
|
||||
IdentityType: 1,
|
||||
OperateType: 1,
|
||||
ShareDeposit: "",
|
||||
MachineIdentifier: "aaa",
|
||||
SdkUid: "",
|
||||
ShareDeposit: '',
|
||||
MachineIdentifier: machineIdentifier,
|
||||
SdkUid: '',
|
||||
};
|
||||
console.log("登录请求数据:", reqData);
|
||||
let res = await AuthService.I.login(reqData);
|
||||
console.log("登录响应数据:", res);
|
||||
if (res && res.code === ApiCode.OK) {
|
||||
|
||||
Reference in New Issue
Block a user