This commit is contained in:
zhuguoqing 2022-05-27 13:30:31 +08:00
parent 5b5fe9bc6a
commit fd5b27daa2
4 changed files with 25 additions and 3 deletions

View File

@ -4,6 +4,7 @@ var gameConfig = require("gameConfig");
var Utils = require("Utils"); var Utils = require("Utils");
const NetManage = require("../../manages/NetManage"); const NetManage = require("../../manages/NetManage");
const { showLoading } = require("../../gif/Loading"); const { showLoading } = require("../../gif/Loading");
const { OperationType } = require("../../Operation/Operation");
cc.Class({ cc.Class({
extends: cc.Component, extends: cc.Component,
@ -180,7 +181,7 @@ cc.Class({
baseskin: gameConfig.all_ItemConfig[v.hero_skin].skinid, baseskin: gameConfig.all_ItemConfig[v.hero_skin].skinid,
hero_skin: v.hero_skin, hero_skin: v.hero_skin,
skill_list: cc.playerData.getbattleskilllist(), skill_list: cc.playerData.getbattleskilllist(),
hero_uniid:parseInt(this.herodatalist[i].hero_uuid), hero_uniid:this.herodatalist[i].hero_uuid,
}; };
this.matchdata = data; this.matchdata = data;
@ -291,7 +292,10 @@ cc.Class({
}, },
onclickgo() { onclickgo() {
//single //single
jcgamelog.addOperation(
OperationType.BUTTON,
'startgame',
);
if (!this.canzb) { if (!this.canzb) {
cc.uiHelper.showTips("Please choose a hero first"); cc.uiHelper.showTips("Please choose a hero first");
return; return;
@ -325,6 +329,10 @@ cc.Class({
cc.battleIns.sendbattlemsg("CMMatchCancelStartGame"); cc.battleIns.sendbattlemsg("CMMatchCancelStartGame");
}, },
onclickready() { onclickready() {
jcgamelog.addOperation(
OperationType.BUTTON,
'startgame',
);
// team // team
if (!this.canzb) { if (!this.canzb) {
cc.uiHelper.showTips("Please choose a hero first"); cc.uiHelper.showTips("Please choose a hero first");

View File

@ -126,6 +126,12 @@ cc.Class({
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
onLoad() { onLoad() {
jcgamelog.addOperation(
OperationType.LOGIN,
'game_start',
);
this.allCountry = ['Japan', 'Singapore', 'Turkey', 'USA']; this.allCountry = ['Japan', 'Singapore', 'Turkey', 'USA'];
this.cpa_icon = []; this.cpa_icon = [];

View File

@ -14,6 +14,7 @@ var urlbuilder = require('urlbuilder');
const BaseNet = require('../../BaseNet'); const BaseNet = require('../../BaseNet');
const Config = require('../../Config'); const Config = require('../../Config');
const { isTesting } = require('../../Config'); const { isTesting } = require('../../Config');
const { OperationType } = require('../../Operation/Operation');
const { default: ServerNotOpenTip } = require('../../tips/ServerNotOpenTip'); const { default: ServerNotOpenTip } = require('../../tips/ServerNotOpenTip');
const { WhitelistTip } = require('../../tips/WhitelistTip'); const { WhitelistTip } = require('../../tips/WhitelistTip');
const { uimanger } = require('../../UI/UIManger'); const { uimanger } = require('../../UI/UIManger');
@ -160,6 +161,13 @@ module.exports = {
console.log('errcode----' + obj.errcode); console.log('errcode----' + obj.errcode);
if (obj.errcode == 66) { if (obj.errcode == 66) {
jcgamelog.addOperation(
OperationType.LOGIN,
'blacklist',
window.account
);
console.log('用户不在白名单中'); console.log('用户不在白名单中');
uimanger.showUI(WhitelistTip.prefabPath); uimanger.showUI(WhitelistTip.prefabPath);
if (localStorage.getItem('walletaccount')) { if (localStorage.getItem('walletaccount')) {

View File

@ -30,7 +30,7 @@
"group-list": [ "group-list": [
"default" "default"
], ],
"last-module-event-record-time": 1652979205672, "last-module-event-record-time": 1653628500757,
"simulator-orientation": false, "simulator-orientation": false,
"simulator-resolution": { "simulator-resolution": {
"height": 640, "height": 640,