update
This commit is contained in:
parent
71481ee3a6
commit
c7356557b2
@ -19,6 +19,8 @@ var MainConfig = {
|
||||
version: "0.1.0",
|
||||
isoffical: false,
|
||||
viewscale: 0.5,
|
||||
packageid: 1, //0 官网apk 1 googleplay aab 2 ios
|
||||
hotfixVersion:"0.5.0"
|
||||
};
|
||||
|
||||
export var isTest = true;
|
||||
|
@ -203,6 +203,8 @@ cc.Class({
|
||||
|
||||
cc.Notifier.on('SMCustomMsgNotify', this, this.getCustomMsg.bind(this));
|
||||
|
||||
cc.Notifier.on("multipointlogin",this,this.multipointout.bind(this));
|
||||
|
||||
this.refreshBaseInfo();
|
||||
NetManage.getItemList();
|
||||
NetManage.getHeroList();
|
||||
@ -229,9 +231,12 @@ cc.Class({
|
||||
}
|
||||
},
|
||||
|
||||
multipointout(){
|
||||
jcgamelog.addOperation(OperationType.LOGIN, 'multipointout');
|
||||
// uimanger.showUI(LogoutTip.prefabPath);
|
||||
},
|
||||
|
||||
getCustomMsg(msg) {
|
||||
//
|
||||
console.log('get once ');
|
||||
if (!cc.find('Canvas').getComponentInChildren('GameUI')) {
|
||||
uimanger.showUI(InviteTip.prefabPath, msg);
|
||||
}
|
||||
@ -266,6 +271,7 @@ cc.Class({
|
||||
cc.Notifier.off('getreward', this);
|
||||
cc.Notifier.off('hasConnectWallet', this);
|
||||
cc.Notifier.off("showFriendRedPoint", this, this.updateRedPoint.bind(this));
|
||||
cc.Notifier.off("multipointlogin",this,this.multipointout.bind(this));
|
||||
},
|
||||
|
||||
updateRedPoint(msg) {
|
||||
|
@ -27,7 +27,6 @@ export class UIGuns extends cc.Component {
|
||||
}
|
||||
|
||||
initdata(data, type = 0) {
|
||||
console.log(data);
|
||||
this._data = data;
|
||||
const list = data.gun_list;
|
||||
let newlist = [];
|
||||
|
@ -241,6 +241,12 @@ cc.Class({
|
||||
'gamestart',
|
||||
);
|
||||
|
||||
|
||||
console.log(`current packageid `+ Config.mainConfig.packageid)
|
||||
console.log(`current version `+ Config.mainConfig.version)
|
||||
|
||||
jcgamelog.addOperation(OperationType.Login,Config.mainConfig.packageid)
|
||||
|
||||
if (!localStorage.getItem('currentNet')) {
|
||||
localStorage.setItem('currentNet', allBaseNet.japan);
|
||||
} else {
|
||||
|
@ -55,6 +55,10 @@ module.exports = {
|
||||
cb2(obj);
|
||||
}
|
||||
}
|
||||
|
||||
if(obj.errcode == 1001){
|
||||
cc.Notifier.emit('multipointlogin'); // 多点登录
|
||||
}
|
||||
},
|
||||
function (errcode, errmsg) {
|
||||
setTimeout(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user