|
|
@@ -4,6 +4,8 @@
|
|
|
*/
|
|
|
export class AppData {
|
|
|
|
|
|
+ public getDeviceInfoCompelete: boolean = false;
|
|
|
+
|
|
|
/** 错误日志游戏名标志,尽量短 */
|
|
|
public appNameBugly: string = '3xiao';
|
|
|
|
|
|
@@ -21,15 +23,15 @@ export class AppData {
|
|
|
public appId: string = 'wxcf31f0e54f7fefda';
|
|
|
|
|
|
/** 友盟渠道 */
|
|
|
- public umengChannel:string = '';
|
|
|
+ public umengChannel: string = '';
|
|
|
|
|
|
/** 设备型号 */
|
|
|
- public deviceType:string = '';
|
|
|
+ public deviceType: string = '';
|
|
|
|
|
|
/** 安卓版本号 */
|
|
|
- public androidVersion:string = '';
|
|
|
+ public androidVersion: string = '';
|
|
|
|
|
|
- public mac: string = 'c9:05:e2:1c:b2:23,f6:60:e4:1a:b7:27';
|
|
|
+ public mac: string = 'c9:24:e2:1c:b2:23,f6:60:e4:1a:b7:27';
|
|
|
|
|
|
/** 设备信息 */
|
|
|
public machineInfo = {
|
|
|
@@ -48,7 +50,6 @@ export class AppData {
|
|
|
* @param info info(Java返回)
|
|
|
*/
|
|
|
public updateDeviceInfo(info) {
|
|
|
- mk.console.logSingle("updateDeviceInfo",info)
|
|
|
let arr = info.split('#')
|
|
|
this.machineInfo.android_id = arr[0];
|
|
|
this.machineInfo.idfa = arr[1];
|
|
|
@@ -65,6 +66,8 @@ export class AppData {
|
|
|
this.deviceType = arr[9];
|
|
|
/** 安卓版本号 */
|
|
|
this.androidVersion = arr[10];
|
|
|
+
|
|
|
+ this.getDeviceInfoCompelete = true;
|
|
|
}
|
|
|
|
|
|
public init() {
|