You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1709 lines
81 KiB
1709 lines
81 KiB
1 week ago
|
import { ryw_Event } from "../../FrameWork/Event/EventEnum";
|
||
|
import EventMgr from "../../FrameWork/Event/EventMgr";
|
||
|
import GameMgr from "../../FrameWork/Mgr/GameMgr";
|
||
|
import User from "../../FrameWork/User/User";
|
||
|
import Common5 from "../../Platform/th/Common5";
|
||
|
import JuQingManager from "../JuQingChat/JuQingManager";
|
||
|
import TaskManager, { MainTaskDataInfo, MainTaskIdEnum } from "../JuQingChat/TaskManager";
|
||
|
import PrefabManage, { GameType } from "../PrefabManager/PrefabManage";
|
||
|
// import NewDataManage_xpz, { GameSecondLevelManage_xpz } from "../XiPanZi/NewDataManage_xpz";
|
||
|
// import NewDataManage_nls from "../game_dls/NewDataManage_nls";
|
||
|
// import FengWeiManager from "./FengWeiManager";
|
||
|
|
||
|
export enum conditionType {
|
||
|
// 采茶
|
||
|
BagType,
|
||
|
GamePreFabType,
|
||
|
}
|
||
|
|
||
|
export let gameBuildConfigs = [
|
||
|
{ GameId: 0, GameName: "小小茶农", },
|
||
|
{ GameId: 0, GameName: "区区茶商", },
|
||
|
{ GameId: 0, GameName: "杰出企业家", }, //gamePrefabID
|
||
|
{ GameId: 0, GameName: "古董鉴定专家", },//gamePrefabID
|
||
|
{ GameId: 0, GameName: "人生赢家", }//gamePrefabID
|
||
|
]
|
||
|
export let chenghaoConfig = [
|
||
|
{ chenghaoId: 0, chenghaoName: "小小茶农", descStr: "小小茶农", },
|
||
|
{ chenghaoId: 1, chenghaoName: "区区茶商", descStr: "区区茶商", getCondition1: 80000000, getCondition2: [], getConditionType: conditionType.BagType, conditionFunction: 'getChenghaoChashang' },
|
||
|
{ chenghaoId: 2, chenghaoName: "杰出企业家", descStr: "杰出企业家", getCondition1: 0, getCondition2: [], getConditionType: conditionType.GamePreFabType, conditionFunction: 'getChenghaoQiyejia' }, //gamePrefabID
|
||
|
{ chenghaoId: 3, chenghaoName: "古董鉴定专家", descStr: "古董鉴定专家", getCondition1: 0, getCondition2: [], getConditionType: conditionType.GamePreFabType, conditionFunction: 'getChenghaoJianDingZhuanjia' },//gamePrefabID
|
||
|
{ chenghaoId: 4, chenghaoName: "人生赢家", descStr: "人生赢家", getCondition1: 0, getCondition2: [], getConditionType: conditionType.GamePreFabType, conditionFunction: 'getChenghaoRenshengYingjia' },//gamePrefabID
|
||
|
]
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
export default class UserManager {
|
||
|
|
||
|
public static clearProvideMoneyArray() {
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
public static addMoneyPercent(percent) {
|
||
|
let money = User.getMoney() * percent
|
||
|
User.setMoney(User.getMoney() + money);
|
||
|
Common5.playEffect('sound/钱币入账')
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateMoney, money);
|
||
|
}
|
||
|
|
||
|
public static addMoney(money, startNode?, endNode?) {
|
||
|
if (money > 0) {
|
||
|
Common5.playEffect('sound/钱币入账')
|
||
|
}
|
||
|
|
||
|
User.setMoney(User.getMoney() + money);
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateMoney, money);
|
||
|
if (startNode) {
|
||
|
PrefabManage.showMoneyFlyEffect(startNode, endNode, money)
|
||
|
}
|
||
|
TaskManager.checkIsFinish2505()
|
||
|
}
|
||
|
|
||
|
// public static addMoney2(money) {
|
||
|
|
||
|
// User.setMoney(User.getMoney() + money);
|
||
|
// EventMgr.emitEvent_custom(ryw_Event.updateMoney, 0);
|
||
|
// }
|
||
|
// public static addMoney3(money, startNode?, endNode?) {
|
||
|
// if (money > 0) {
|
||
|
// Common5.playEffect('sound/钱币入账')
|
||
|
// }
|
||
|
|
||
|
// User.setMoney(User.getMoney() + money, false);
|
||
|
// EventMgr.emitEvent_custom(ryw_Event.updateMoney, money);
|
||
|
// if (startNode) {
|
||
|
// PrefabManage.showMoneyFlyEffect(startNode, endNode, money);
|
||
|
// }
|
||
|
|
||
|
// //TaskManager.checkIsFinish640(User.getMoney())
|
||
|
// }
|
||
|
|
||
|
public static subMoney(money) {
|
||
|
User.setMoney(Math.max(User.getMoney() - money, 0));
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateMoney, -money);
|
||
|
}
|
||
|
|
||
|
public static subMoneyChanye(money) {
|
||
|
User.setMoney(Math.max(User.getMoney() - money, 0));
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateMoney, 0);
|
||
|
}
|
||
|
|
||
|
|
||
|
public static getCurMoney() {
|
||
|
let money = User.getMoney()
|
||
|
return money
|
||
|
}
|
||
|
|
||
|
|
||
|
public static addYuanBao(yuanBao, startNode?, endNode?) {
|
||
|
|
||
|
let num = User.getYuanBao() + yuanBao
|
||
|
User.setYuanBao(num);
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateYuanBao, 0);
|
||
|
if (startNode) {
|
||
|
PrefabManage.showGoldFlyEffect(startNode)
|
||
|
}
|
||
|
// if(num >= 20000){
|
||
|
// let mainTaskInfo:any = TaskManager.getCurUnLockMainTaskInfo()
|
||
|
// let mainId = mainTaskInfo.Id
|
||
|
// if(mainId == MainTaskIdEnum.MainTask_535){
|
||
|
// TaskManager.finishCurMainTask(MainTaskIdEnum.MainTask_535)
|
||
|
// }
|
||
|
// }
|
||
|
// if(num >= 200000){
|
||
|
// let mainTaskInfo:any = TaskManager.getCurUnLockMainTaskInfo()
|
||
|
// let mainId = mainTaskInfo.Id
|
||
|
// if(mainId == MainTaskIdEnum.MainTask_540){
|
||
|
// User.setIsFinishTask540(true)
|
||
|
// TaskManager.finishCurMainTask(MainTaskIdEnum.MainTask_540)
|
||
|
// }
|
||
|
// }
|
||
|
}
|
||
|
|
||
|
|
||
|
public static subYuanBao(yuanBao) {
|
||
|
User.setYuanBao(Math.max(User.getYuanBao() - yuanBao, 0));
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateYuanBao, -yuanBao);
|
||
|
}
|
||
|
|
||
|
public static getCurYuanBao() {
|
||
|
let yuanBao = User.getYuanBao()
|
||
|
return yuanBao
|
||
|
}
|
||
|
|
||
|
public static addUserIQ(iq) {
|
||
|
|
||
|
let num = User.getUserIQ() + iq
|
||
|
User.setUserIQ(num);
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updatePeopleIQ, iq);
|
||
|
}
|
||
|
|
||
|
public static addProperTiLi(tili) {
|
||
|
User.setProper_TiLi(User.getProper_TiLi() + tili);
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateProperty, tili, 1);
|
||
|
}
|
||
|
|
||
|
public static addProperNaoLi(naoli) {
|
||
|
User.setProper_NaoLi(User.getProper_NaoLi() + naoli);
|
||
|
EventMgr.emitEvent_custom(ryw_Event.updateProperty, naoli, 2);
|
||
|
}
|
||
|
|
||
|
public static getName() {
|
||
|
|
||
|
}
|
||
|
|
||
|
public static setCanInterGameList(gametype, isAdd = true) {
|
||
|
User.setCanInterGameList(gametype)
|
||
|
PrefabManage.preloadPrefabByType(gametype)
|
||
|
let config = PrefabManage.getPrefabInfoByGameType(gametype)
|
||
|
if (config.cityNodeName && isAdd) {
|
||
|
User.addUnLockGameNameTab(config.cityNodeName)
|
||
|
}
|
||
|
}
|
||
|
public static getCanInterGameList() {
|
||
|
return User.getCanInterGameList()
|
||
|
}
|
||
|
|
||
|
public static setCanInterGameListArray(array) {
|
||
|
User.setCanInterGameListArray(array)
|
||
|
}
|
||
|
public static getCurDay() {
|
||
|
let day = User.getDay()
|
||
|
return day
|
||
|
}
|
||
|
|
||
|
public static setCurDay(day) {
|
||
|
User.setDay(day)
|
||
|
}
|
||
|
|
||
|
|
||
|
public static sendDataToUrl() {
|
||
|
let moneyStr = 'money:' + User.getMoney() + ';'//钱
|
||
|
let userIQ = 'userIQ:' + User.getUserIQ() + ';'//智商值
|
||
|
let dayStr = 'day:' + User.getDay() + ';'//天数
|
||
|
// let proper_TiLi = 'proper_TiLi:' + User.getProper_TiLi() + ';'//体力
|
||
|
// let proper_NaoLi = 'proper_NaoLi:' + User.getProper_NaoLi() + ';'//脑力
|
||
|
let curGameLevelIndex = 'curGameLevelIndex:' + User.getCurGameLevelIndex() + ';'//游戏关卡index
|
||
|
|
||
|
//背包
|
||
|
let bagList = User.getBagGoodsList()
|
||
|
let bagGoodIdStr = ''
|
||
|
for (let i = 0; i < bagList.length; i++) {
|
||
|
let data = bagList[i]
|
||
|
if (i == bagList.length - 1) {
|
||
|
bagGoodIdStr = bagGoodIdStr + data.goodId + ',' + data.goodNum + ''
|
||
|
|
||
|
} else {
|
||
|
|
||
|
bagGoodIdStr = bagGoodIdStr + data.goodId + ',' + data.goodNum + '?'
|
||
|
|
||
|
}
|
||
|
}
|
||
|
let bagGoodIdStrA = 'bagGood:' + bagGoodIdStr + ';'
|
||
|
|
||
|
// //房间状态
|
||
|
// let roomGoodStatus = User.getRoomGoodStatus()
|
||
|
// let roomGoodStatusA = 'roomGoodStatus:' + roomGoodStatus + ';'
|
||
|
|
||
|
|
||
|
// //风味酒店
|
||
|
// let fengweiList = User.getFengWeiHotelList()
|
||
|
// let fengweiStr = ''
|
||
|
|
||
|
// for(let i=0;i<fengweiList.length;i++){
|
||
|
// let data = fengweiList[i]
|
||
|
// if(i==fengweiList.length-1){
|
||
|
// if(data.isLock == false){
|
||
|
// fengweiStr=fengweiStr+data.levelNum+','+data.zhuangxiuTime+''
|
||
|
// }else{
|
||
|
// fengweiStr=fengweiStr+'0'+','+data.zhuangxiuTime+''
|
||
|
// }
|
||
|
|
||
|
// }else{
|
||
|
// if(data.isLock == false){
|
||
|
// fengweiStr=fengweiStr+data.levelNum+','+data.zhuangxiuTime+'?'
|
||
|
// }else{
|
||
|
// fengweiStr=fengweiStr+'0,'+data.zhuangxiuTime+'?'
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
// let fengweiStrA = 'fengweiHotel:'+fengweiStr+';'
|
||
|
|
||
|
// //允许进入的玩法
|
||
|
// let canInterStr = ''
|
||
|
// let canInterGameList = User.getCanInterGameList()
|
||
|
// for (let i = 0; i < canInterGameList.length; i++) {
|
||
|
// let data = canInterGameList[i]
|
||
|
// canInterStr = canInterStr + data + '?'
|
||
|
// }
|
||
|
// let canInterStrA = 'canInterGameList:' + canInterStr + ';'
|
||
|
|
||
|
//public userHeTong = { /**need备份*/
|
||
|
//buyMengChongGuan:false,buyFengHuangZuYu:false,buyChuShouDaLou:false,
|
||
|
//buyFengTouDaSha:false,buyPeiXunLou:false, buyClub:false,buyPaiMaiHang:false,buyBaiMaHuiSuo:false,buyMeiZhuang:false, buyWaiXing:false,buyWangShiChanYe:false,buyXiuXianNongZhuang:false}
|
||
|
|
||
|
|
||
|
// let hetongData = User.getUserHeTong()
|
||
|
// let hetongDataA = 'HeTong:' + hetongData.buyMengChongGuan + '?' + hetongData.buyFengHuangZuYu + '?' + hetongData.buyChuShouDaLou + '?' + hetongData.buyFengTouDaSha
|
||
|
// + '?' + hetongData.buyPeiXunLou + '?' + hetongData.buyClub + '?' + hetongData.buyPaiMaiHang + '?' + hetongData.buyBaiMaHuiSuo + '?'
|
||
|
// + hetongData.buyMeiZhuang + '?' + hetongData.buyWaiXing + '?' + hetongData.buyWangShiChanYe + '?' + hetongData.buyXiuXianNongZhuang + ';'
|
||
|
|
||
|
// //奶奶状态
|
||
|
// let NaiNaiStatus = User.getNaiNaiStatus()
|
||
|
// let NaiNaiStatusA = 'NaiNaiStatus:'+NaiNaiStatus+';'
|
||
|
|
||
|
// //年后列表
|
||
|
// let nianHuoExistIdTabStr = ''
|
||
|
// let nianHuoExistIdTab = User.getNianHuoExistIdTab()
|
||
|
// for(let i=0;i<nianHuoExistIdTab.length;i++){
|
||
|
// let data = nianHuoExistIdTab[i]
|
||
|
// nianHuoExistIdTabStr = nianHuoExistIdTabStr+data+'?'
|
||
|
// }
|
||
|
// let nianHuoExistIdTabA = 'nianHuoExistIdTab:'+nianHuoExistIdTabStr+';'
|
||
|
// //打螺丝
|
||
|
// let dataNLS = User.getSaveGameProgressData_nls()
|
||
|
|
||
|
// let guankaCaowei_nls = ''
|
||
|
// for(let i = 0;i<dataNLS.guankaCaowei.length;i++){
|
||
|
// if(i==dataNLS.guankaCaowei.length-1){
|
||
|
// guankaCaowei_nls = guankaCaowei_nls+dataNLS.guankaCaowei[i]
|
||
|
// }else{
|
||
|
// guankaCaowei_nls = guankaCaowei_nls+dataNLS.guankaCaowei[i]+','
|
||
|
// }
|
||
|
// }
|
||
|
// let curGuanQiaNum_nls = "curGuanQiaNum_nls:"+dataNLS.curGuanQiaNum+';'
|
||
|
// let guankaCaowei_nlsStr = "guankaCaowei_nls:"+guankaCaowei_nls+';'
|
||
|
// let freeJInshouzhi_nls = "freeJInshouzhi_nls:"+dataNLS.freeJInshouzhi+';'
|
||
|
// let freePaixu_nls = "freePaixu_nls:"+dataNLS.freePaixu+';'
|
||
|
// let isTongGuan_nls = "isTongGuan_nls:"+dataNLS.isTongGuan+';'
|
||
|
|
||
|
// let nlsStr = curGuanQiaNum_nls+guankaCaowei_nlsStr+freeJInshouzhi_nls+freePaixu_nls+isTongGuan_nls
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
//剧情
|
||
|
let curJuQingUnLockIndexStr = 'curJuQingUnLockIndex:' + User.getCurJuQingUnLockIndex() + ';'
|
||
|
|
||
|
let mainTaskData = User.getCurUnLockMainTaskInfo()
|
||
|
let curUnLockMainTaskInfo = ''
|
||
|
if (mainTaskData && mainTaskData['Id'] != null) {
|
||
|
curUnLockMainTaskInfo = 'curUnLockMainTaskInfo:' + mainTaskData['Id'] + '?' + mainTaskData['StartDay'] + '?' + mainTaskData['EndDay'] + '?' + mainTaskData['IsFinish'] + ';'
|
||
|
}
|
||
|
let subTaskData = User.getCurUnLockSubTaskInfo()
|
||
|
let curUnLockSubTaskInfo = ''
|
||
|
if (subTaskData && subTaskData['Id'] != null) {
|
||
|
curUnLockSubTaskInfo = 'curUnLockSubTaskInfo:' + subTaskData['Id'] + '?' + subTaskData['curProgressNum'] + '?' + subTaskData['targetProgressNum'] + '?' + subTaskData['IsFinish'] + ';'
|
||
|
}
|
||
|
|
||
|
let ChatRecordData = User.getAllChatRecordData()
|
||
|
let chatStr = 'ChatRecordData:'
|
||
|
Object.keys(ChatRecordData).forEach((key) => {
|
||
|
//console.log(key + ':', ChatRecordData[key]);
|
||
|
let chat1 = key + '&'
|
||
|
let data = ChatRecordData[key]
|
||
|
for (let i = 0; i < data.length; i++) {
|
||
|
if (i == data.length - 1) {
|
||
|
chat1 = chat1 + data[i].indexStr + ',' + data[i].isFinish + '#'
|
||
|
} else {
|
||
|
chat1 = chat1 + data[i].indexStr + ',' + data[i].isFinish + '|'
|
||
|
}
|
||
|
}
|
||
|
chatStr = chatStr + chat1
|
||
|
});
|
||
|
chatStr += ';'
|
||
|
|
||
|
//倒爷物品单
|
||
|
let daoyeGoodList = User.getDaoyeGoodList()
|
||
|
let daoyeGoodListStr = 'daoyeGoodList:'
|
||
|
Object.keys(daoyeGoodList).forEach((key) => {
|
||
|
let data = daoyeGoodList[key].goodId + '&' + daoyeGoodList[key].buyNum + '&' + daoyeGoodList[key].buyPercent + '&' + daoyeGoodList[key].gameType
|
||
|
daoyeGoodListStr += data + '?'
|
||
|
});
|
||
|
daoyeGoodListStr += ';'
|
||
|
|
||
|
//倒爷索引
|
||
|
let daoYeIndex = User.getDaoyeIndex()
|
||
|
let daoYeIndexA = 'daoYeIndex:' + daoYeIndex + ';'
|
||
|
|
||
|
|
||
|
let firstStepIndex = User.getFirstStepIndex()
|
||
|
let firstStepIndexStr = 'firstStepIndex:' + firstStepIndex + ';'
|
||
|
|
||
|
|
||
|
// let taofenArray = User.getTaofenArray()
|
||
|
// let taofenStr = 'taofen:'+taofenArray.tanhuang+'?'+taofenArray.xichen+';'
|
||
|
|
||
|
|
||
|
// let SLCGongJianAd = User.getSLCGongJianAd()
|
||
|
// let SLCLieQiangAd = User.getSLCLieQiangAd()
|
||
|
// let SLCWangAd = User.getSLCWangAd()
|
||
|
// let shoulieStr = 'shoulie:'+SLCGongJianAd+'?'+SLCLieQiangAd+'?'+SLCWangAd+';'
|
||
|
|
||
|
// let diaoyuStr = 'diaoyu1;'
|
||
|
// let diaoyuList = User.getDiaoyuData()
|
||
|
// if(diaoyuList.length == 0){
|
||
|
|
||
|
// }else{
|
||
|
// diaoyuStr = 'diaoyu:'
|
||
|
// let dataVal = diaoyuList[0].dataVal
|
||
|
// let qiuyin = dataVal[1].unlock+'?'+dataVal[1].spTimes+'?'+dataVal[1].freeTimes+'?'
|
||
|
// let yuer = dataVal[2].unlock+'?'+dataVal[2].spTimes+'?'+dataVal[2].freeTimes+'?'
|
||
|
// let zhugan = dataVal[3].unlock+'?'+dataVal[3].spTimes+'?'+dataVal[3].freeTimes
|
||
|
// diaoyuStr = qiuyin+yuer+zhugan
|
||
|
// }
|
||
|
|
||
|
// let ditanList = User.getDitanData()
|
||
|
// let ditanStr = 'ditan1;'
|
||
|
// if(ditanList.length == 0){
|
||
|
|
||
|
// }else{
|
||
|
// ditanStr = 'ditan:'
|
||
|
// let ditan = ditanList[0].dataVal+'?'+ditanList[1].dataVal+'?'+ditanList[2].dataVal+';'
|
||
|
// ditanStr = ditanStr+ditan
|
||
|
// }
|
||
|
|
||
|
|
||
|
|
||
|
let gameGuideStepIndex = User.getGameGuideStepIndex()
|
||
|
let GameGuideStepIndexStr = 'GameGuideStepIndex:' + gameGuideStepIndex + ';'
|
||
|
|
||
|
let myStockData = User.getMyStockData()
|
||
|
let myStockDataStr = 'myStockData:'
|
||
|
Object.keys(myStockData).forEach((key) => {
|
||
|
let data = myStockData[key].stockName+'&'+myStockData[key].buyPrice+'&'+myStockData[key].prossess
|
||
|
myStockDataStr += data + '?'
|
||
|
});
|
||
|
myStockDataStr += ';'
|
||
|
|
||
|
|
||
|
let curTaskIndex = 'curTaskIndex:' + User.getCurTaskIndex() + ';'
|
||
|
// let myFangChanData = User.getMyFangChanData()
|
||
|
// let myFangChanDataStr = 'myFangChanData:'
|
||
|
// Object.keys(myFangChanData).forEach((key) => {
|
||
|
// let data = myFangChanData[key].FangChanName+'&'+myFangChanData[key].buyPrice+'&'+myFangChanData[key].prossess
|
||
|
// myFangChanDataStr += data + '?'
|
||
|
// });
|
||
|
// myFangChanDataStr += ';'
|
||
|
|
||
|
// //美食街合同
|
||
|
// let baoweiData = User.getBaoweiData()
|
||
|
// let meiShiJieHetongData = 'MeiShiHeTong:'+baoweiData.isQianYue+';'
|
||
|
|
||
|
//玩法收益
|
||
|
let shouYiMoneyCount = User.getAllGameShouYi()
|
||
|
let wanFaShouYiStr = 'wanFaShouYiData:'
|
||
|
Object.keys(shouYiMoneyCount).forEach((key) => {
|
||
|
let data = key + '&' + shouYiMoneyCount[key]
|
||
|
wanFaShouYiStr += data + '?'
|
||
|
});
|
||
|
wanFaShouYiStr += ';'
|
||
|
|
||
|
// //美食街摊位
|
||
|
// let industryList = User.getIndustryList()
|
||
|
// let meiShiJieListStr = 'meiShiJieListData:'
|
||
|
// Object.keys(industryList).forEach((key) => {
|
||
|
// let data = industryList[key].IndustryId+'&'+industryList[key].isLock+'&'+industryList[key].IndustryNum+'&'+industryList[key].levelNum
|
||
|
// +'&'+industryList[key].levelUpMoney+'&'+industryList[key].earnMoneyTime+'&'+industryList[key].earnMoney+'&'+industryList[key].timeAdd
|
||
|
// meiShiJieListStr += data + '?'
|
||
|
// });
|
||
|
// meiShiJieListStr += ';'
|
||
|
|
||
|
// //玩法解锁的基础IQ值
|
||
|
// let jieSuoBaseIQ = User.getALlJieSuoBaseIQ()
|
||
|
// let jieSuoBaseIQStr = 'jieSuoBaseIQData:'
|
||
|
// Object.keys(jieSuoBaseIQ).forEach((key) => {
|
||
|
// let data = key+'&'+jieSuoBaseIQ[key]
|
||
|
// jieSuoBaseIQStr += data + '?'
|
||
|
// });
|
||
|
// jieSuoBaseIQStr += ';'
|
||
|
|
||
|
|
||
|
|
||
|
// //文字关卡解锁
|
||
|
// let levelNum_Array = User.getLevelAryy_custom()
|
||
|
// let wenZiUnLockListStr = 'wenZiUnLockList:'
|
||
|
// Object.keys(levelNum_Array).forEach((key) => {
|
||
|
// wenZiUnLockListStr += levelNum_Array[key] + '?'
|
||
|
// });
|
||
|
// wenZiUnLockListStr += ';'
|
||
|
|
||
|
// //文字关卡过关
|
||
|
// let successLevels = User.getSuccessLevels()
|
||
|
// let successLevelsStr = 'successLevels:'
|
||
|
// Object.keys(successLevels).forEach((key) => {
|
||
|
// successLevelsStr += successLevels[key] + '?'
|
||
|
// });
|
||
|
// successLevelsStr += ';'
|
||
|
|
||
|
|
||
|
|
||
|
// //古玩市场索引
|
||
|
// let guWanShiChangIndex = User.getGuWanShiChangIndex()
|
||
|
// let guWanShiChangIndexA = 'guWanShiChangIndex:' + guWanShiChangIndex +';'
|
||
|
|
||
|
// //元宝
|
||
|
// let yuanBaoStr = 'yuanBao:'+User.getYuanBao()+';'
|
||
|
// //元宝自动合成剩余时间
|
||
|
// let yuanBaoLeftTime = 'YBLeftTime:'+User.getAutoHeChangLeftTime()+';'
|
||
|
|
||
|
//豪门倒计时
|
||
|
// let haomendaojishiStr = 'haomendaojishi:' + User.getChongFanHaoMenTimes() + ';'
|
||
|
|
||
|
// //金币元宝显示状态
|
||
|
// let jinBiYuanBaoShowStatus = User.getJinBiYuanBaoShowStatus()
|
||
|
// let jinBiYuanBaoShowStatusA = 'jinBiYuanBaoShowStatus:' + jinBiYuanBaoShowStatus +';'
|
||
|
|
||
|
// //是否重返豪门
|
||
|
// let isChongFanHaoMen = 'isChongFanHaoMen:'+User.getIsChongFanHaoMen()+';'
|
||
|
|
||
|
// //是否完成任务540
|
||
|
// let isFinishTask540 = 'isFinishTask540:'+User.getIsFinishTask540()+';'
|
||
|
|
||
|
// //是否解锁佰草集说明
|
||
|
// let isUnlockBaiCaoJiShuoMing = 'isUnlockBaiCaoJiShuoMing:'+User.getBaiCaoJiShuoMingUnlock()+';'
|
||
|
|
||
|
// //新房间状态
|
||
|
// let newRoomStatus = 'newRoomStatus:' + User.getNewRoomStatus() +';'
|
||
|
|
||
|
// //硝烟战场状态
|
||
|
// let xiaoYanZhanChangStatus = 'xiaoYanZhanChangStatus:' + User.getXiaoYanZhanChangStatus() +';'
|
||
|
|
||
|
// //是否完成任务546
|
||
|
// let isFinishTask546 = 'isFinishTask546:'+User.getIsFinishTask546()+';'
|
||
|
|
||
|
//记事本阶段状态
|
||
|
// let treeUnlockIndex = 'treeUnlockIndex:' + User.getTreeUnlockIndex() + ';'
|
||
|
|
||
|
// //是否完成任务556
|
||
|
// let isFinishTask556 = 'isFinishTask556:'+User.getIsFinishTask556()+';'
|
||
|
|
||
|
//是否完成疯狂诗词
|
||
|
// let isFinishFKSC = 'isFinishFKSC:'+User.getIsFinishFKSC()+';'
|
||
|
|
||
|
// //是否完成任务567
|
||
|
// let isFinishTask567 = 'isFinishTask567:'+User.getIsFinishTask567()+';'
|
||
|
|
||
|
// let ysArray = User.getYinShiTouZiArray()
|
||
|
// let yinshitouziArray = 'yinshitouziArray:' + ysArray[0] + '?' + ysArray[1] + '?' + ysArray[2] + '?' + ysArray[3] + '?' + ysArray[4] + ';'
|
||
|
|
||
|
//洗盘子
|
||
|
// let dataXPZ = User.getSaveGameProgressData_XPZ()
|
||
|
// let xpz_curJieSuoShengXiaoId = "xpz_curJieSuoShengXiaoId:" + dataXPZ.curJieSuoShengXiaoId + ';'
|
||
|
// let xpz_finishLiWuNum = "xpz_finishLiWuNum:" + dataXPZ.finishLiWuNum + ';'
|
||
|
// let xpz_isOpenLiWuProgress = "xpz_isOpenLiWuProgress:" + dataXPZ.isOpenLiWuProgress + ';'
|
||
|
|
||
|
|
||
|
// let xpz_ads9LeftTimer = "xpz_ads9LeftTimer:" + dataXPZ.ads9LeftTimer + ';'
|
||
|
// let xpz_ads10LeftTimer = "xpz_ads10LeftTimer:" + dataXPZ.ads10LeftTimer + ';'
|
||
|
// let xpz_ads11LeftTimer = "xpz_ads11LeftTimer:" + dataXPZ.ads11LeftTimer + ';'
|
||
|
// let xpz_autoBuPanTimeNum = "xpz_autoBuPanTimeNum:" + dataXPZ.autoBuPanTimeNum + ';'
|
||
|
// let xpz_curGuanQiaFinishNum = "xpz_curGuanQiaFinishNum:" + dataXPZ.curGuanQiaFinishNum + ';'
|
||
|
// let xpz_curGuanQiaNum = "xpz_curGuanQiaNum:" + dataXPZ.curGuanQiaNum + ';'
|
||
|
// let xpz_curTargetMinNumber = "xpz_curTargetMinNumber:" + dataXPZ.curTargetMinNumber + ';'
|
||
|
// let xpz_curTargetNumber = "xpz_curTargetNumber:" + dataXPZ.curTargetNumber + ';'
|
||
|
// let xpz_gameTime = "xpz_gameTime:" + dataXPZ.gameTime + ';'
|
||
|
// let xpz_isAutoBuPanTimer = "xpz_isAutoBuPanTimer:" + dataXPZ.isAutoBuPanTimer + ';'
|
||
|
// let xpz_jieSuoColorNum = "xpz_jieSuoColorNum:" + dataXPZ.jieSuoColorNum + ';'
|
||
|
// let xpz_jieSuoTuJianId = "xpz_jieSuoTuJianId:" + dataXPZ.jieSuoTuJianId + ';'
|
||
|
// let xpz_leftPanZiNum = "xpz_leftPanZiNum:" + dataXPZ.leftPanZiNum + ';'
|
||
|
// let xpz_unlock_ads9 = "xpz_unlock_ads9:" + dataXPZ.unlock_ads9 + ';'
|
||
|
// let xpz_unlock_ads10 = "xpz_unlock_ads10:" + dataXPZ.unlock_ads10 + ';'
|
||
|
// let xpz_unlock_ads11 = "xpz_unlock_ads11:" + dataXPZ.unlock_ads11 + ';'
|
||
|
// let xpz_unlock_ads13 = "xpz_unlock_ads13:" + dataXPZ.unlock_ads13 + ';'
|
||
|
// let xpz_unlock_adsXiWanChi2 = "xpz_unlock_adsXiWanChi2:" + dataXPZ.unlock_adsXiWanChi2 + ';'
|
||
|
// let xpz_unlock_cell = "xpz_unlock_cell:" + dataXPZ.unlock_cell + ';'
|
||
|
// let xpz_yiXiaoChuNum = "xpz_yiXiaoChuNum:" + dataXPZ.yiXiaoChuNum + ';'
|
||
|
// let xpz_yiXiaoChuAllNum = "xpz_yiXiaoChuAllNum:" + dataXPZ.yiXiaoChuAllNum + ';'
|
||
|
// let str1 = ''
|
||
|
// for (let i = 0; i < dataXPZ.curXiWanChiLevel.length; i++) {
|
||
|
// if (i == dataXPZ.curXiWanChiLevel.length - 1) {
|
||
|
// str1 = str1 + dataXPZ.curXiWanChiLevel[i]
|
||
|
// } else {
|
||
|
// str1 = str1 + dataXPZ.curXiWanChiLevel[i] + ','
|
||
|
// }
|
||
|
// }
|
||
|
// let xpz_curXiWanChiLevel = "xpz_curXiWanChiLevel:" + str1 + ';'
|
||
|
|
||
|
// let str2 = ''
|
||
|
// for (let i = 0; i < dataXPZ.xiaoChuColorNumTab.length; i++) {
|
||
|
// if (i == dataXPZ.xiaoChuColorNumTab.length - 1) {
|
||
|
// str2 = str2 + dataXPZ.xiaoChuColorNumTab[i]
|
||
|
// } else {
|
||
|
// str2 = str2 + dataXPZ.xiaoChuColorNumTab[i] + ','
|
||
|
// }
|
||
|
// }
|
||
|
// let xpz_xiaoChuColorNumTab = "xpz_xiaoChuColorNumTab:" + str2 + ';'
|
||
|
|
||
|
|
||
|
// let str3 = ''
|
||
|
// for (let i = 0; i < dataXPZ.cell_data.length; i++) {
|
||
|
// let data_ = dataXPZ.cell_data[i]
|
||
|
// let str4 = ''
|
||
|
// for (let kk = 0; kk < data_.length; kk++) {
|
||
|
// if (kk == data_.length - 1) {
|
||
|
// str4 = str4 + data_[kk]
|
||
|
// } else {
|
||
|
// str4 = str4 + data_[kk] + ','
|
||
|
// }
|
||
|
// }
|
||
|
// str3 = str3 + str4 + '?'
|
||
|
// }
|
||
|
|
||
|
// let xpz_cell_data = "xpz_cell_data:" + str3 + ';'
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
// let kgsLevelArray = User.getkaiGongSiLevelArray()
|
||
|
// let kaiGongSiLevelArray = 'kaiGongSiLevelArray:' + kgsLevelArray[0] + '?' + kgsLevelArray[1] + '?' + kgsLevelArray[2] + '?' + kgsLevelArray[3] + '?' + kgsLevelArray[4] + kgsLevelArray[5] + kgsLevelArray[6] + kgsLevelArray[7] + ';'
|
||
|
|
||
|
// let kgsLockArray = User.getKaiGongSiLockArray()
|
||
|
// let kaiGongSiLockArray = 'kaiGongSiLockArray:' + kgsLockArray[0] + '?' + kgsLockArray[1] + '?' + kgsLockArray[2] + '?' + kgsLockArray[3] + '?' + kgsLockArray[4] + kgsLockArray[5] + kgsLockArray[6] + kgsLockArray[7] + ';'
|
||
|
|
||
|
// let youTingInfo = User.getYouTingInfo(6)
|
||
|
// let youTingInfoStr = 'youTingInfo:'
|
||
|
// Object.keys(youTingInfo).forEach((key) => {
|
||
|
// let data = youTingInfo[key].tingKaoId + '&' + youTingInfo[key].isBuy + '&' + youTingInfo[key].chuHaiTime
|
||
|
// youTingInfoStr += data + '?'
|
||
|
// });
|
||
|
// youTingInfoStr += ';'
|
||
|
|
||
|
// let qunYingJiuDianLockArray = User.getQunYingJiuDianLockArray(4)
|
||
|
// let qunYingJiuDianLockArrayStr = 'qunYingJiuDianLockArray:'
|
||
|
// Object.keys(qunYingJiuDianLockArray).forEach((key) => {
|
||
|
// qunYingJiuDianLockArrayStr += qunYingJiuDianLockArray[key] + '?'
|
||
|
// });
|
||
|
// qunYingJiuDianLockArrayStr += ';'
|
||
|
|
||
|
// let yiMaJiangLockArray = User.getYiMaJiangLockArray(3)
|
||
|
// let yiMaJiangLockArrayStr = 'yiMaJiangLockArray:'
|
||
|
// Object.keys(yiMaJiangLockArray).forEach((key) => {
|
||
|
// yiMaJiangLockArrayStr += yiMaJiangLockArray[key] + '?'
|
||
|
// });
|
||
|
// yiMaJiangLockArrayStr += ';'
|
||
|
|
||
|
let finishTaskId = User.getCurTaskId()
|
||
|
let finishTaskIdStr = 'finishTaskId:' + finishTaskId[0] + '?' + finishTaskId[1] + ';'
|
||
|
|
||
|
// let qieLevel = 'qieLevel:' + User.getQieLevel() + ';'
|
||
|
|
||
|
// let treeLevel = 'treeLevel:' + User.getTreeLevel() + ';'
|
||
|
|
||
|
let roomBtnIndex = 'roomBtnIndex:' + User.getRoomBtnIndex() + ';'
|
||
|
|
||
|
let baDaCaiXi = User.getBaDaCaiXiUnlockStatus()
|
||
|
let baDaCaiXiUnlockStatusA = 'baDaCaiXiUnlockStatus:' + baDaCaiXi.YaoShan + '?' + baDaCaiXi.ShiPingChang + '?' + baDaCaiXi.YiYao + '?' + baDaCaiXi.WenYu
|
||
|
+ '?' + baDaCaiXi.DianZi + '?' + baDaCaiXi.WangLuo + '?' + baDaCaiXi.JingRong + '?' + baDaCaiXi.WeiLai + ';'
|
||
|
|
||
|
|
||
|
let baDaCaiXiLevelInfo = User.getBaDaCaiXiLevelInfo()
|
||
|
let baDaCaiXiLevelStr = 'baDaCaiXiLevelInfo:'
|
||
|
for (let i = 0; i < baDaCaiXiLevelInfo.length; i++) {
|
||
|
if (i == baDaCaiXiLevelInfo.length - 1) {
|
||
|
baDaCaiXiLevelStr = baDaCaiXiLevelStr + baDaCaiXiLevelInfo[i].level + ';'
|
||
|
} else {
|
||
|
baDaCaiXiLevelStr = baDaCaiXiLevelStr + baDaCaiXiLevelInfo[i].level + '?'
|
||
|
}
|
||
|
}
|
||
|
// let finishZhiNengTaskId = User.getCurZhiNengTaskId()
|
||
|
// let finishZhiNengTaskIdStr = 'finishZhiNengTaskId:'
|
||
|
// Object.keys(finishZhiNengTaskId).forEach((key) => {
|
||
|
// finishZhiNengTaskIdStr += finishZhiNengTaskId[key] + '?'
|
||
|
// });
|
||
|
// finishZhiNengTaskIdStr += ';'
|
||
|
|
||
|
// //聊天头像索引
|
||
|
// let chatImgIndex = User.getChatImgIndex()
|
||
|
// let chatImgIndexA = 'chatImgIndex:' + chatImgIndex + ';'
|
||
|
|
||
|
// let cdArray = User.getAllCaiDanStatus()
|
||
|
// let caiDanStatusTab = 'caiDanStatusTab:' + cdArray[0] + '?' + cdArray[1] + '?' + cdArray[2] + ';'
|
||
|
|
||
|
|
||
|
let sendData = moneyStr + userIQ + dayStr + curGameLevelIndex + bagGoodIdStrA
|
||
|
+ curJuQingUnLockIndexStr + curUnLockMainTaskInfo + curUnLockSubTaskInfo + chatStr + daoyeGoodListStr + daoYeIndexA
|
||
|
+ firstStepIndexStr + GameGuideStepIndexStr + myStockDataStr + curTaskIndex + wanFaShouYiStr
|
||
|
+ finishTaskIdStr + baDaCaiXiUnlockStatusA + baDaCaiXiLevelStr
|
||
|
|
||
|
// + xpz_curJieSuoShengXiaoId + xpz_finishLiWuNum + xpz_isOpenLiWuProgress + xpz_ads9LeftTimer
|
||
|
// + xpz_ads10LeftTimer + xpz_ads11LeftTimer + xpz_autoBuPanTimeNum + xpz_curGuanQiaFinishNum
|
||
|
// + xpz_curGuanQiaNum + xpz_curTargetMinNumber + xpz_curTargetNumber + xpz_gameTime
|
||
|
// + xpz_isAutoBuPanTimer + xpz_jieSuoColorNum + xpz_jieSuoTuJianId + xpz_leftPanZiNum
|
||
|
// + xpz_unlock_ads9 + xpz_unlock_ads10 + xpz_unlock_ads11 + xpz_unlock_ads13 + xpz_unlock_adsXiWanChi2 + xpz_unlock_cell
|
||
|
// + xpz_yiXiaoChuNum + xpz_yiXiaoChuAllNum + xpz_cell_data + xpz_curXiWanChiLevel + xpz_xiaoChuColorNumTab
|
||
|
// + kaiGongSiLevelArray + kaiGongSiLockArray + youTingInfoStr + qunYingJiuDianLockArrayStr + yiMaJiangLockArrayStr + finishTaskIdStr + finishZhiNengTaskIdStr
|
||
|
// + chatImgIndexA + caiDanStatusTab
|
||
|
|
||
|
console.log('数据保存——++++===', sendData)
|
||
|
//console.log('数据保存——++++===',sendData)
|
||
|
return sendData
|
||
|
}
|
||
|
|
||
|
public static readDataByUrl(GameData) {
|
||
|
let ceshiData = GameData
|
||
|
|
||
|
// ceshiData = 'money:29950127417;userIQ:76;day:329;bagGood:1701,1?1710,1?1734,1?1713,1?1712,1?1742,1?1744,1?1622,1?1614,11?1611,17?1613,15?1116,2?1121,3?1120,1?1123,2?1113,2?1118,2?1119,1?1510,1?1513,1?1512,1?1515,3?1709,2?1514,2?1517,1?1519,1?1801,1?1711,1?1324,1?1323,2?1318,4?1315,1?1612,10?1617,11?1606,6?1615,9?1616,7?1609,7?1618,2?1610,6?1762,1?1317,4?1320,1?1313,1?1322,2?1314,2?1319,1?1714,2?1620,2?1608,3?1716,1?1619,1?1607,4?1321,1?1504,1?1217,1?1215,1?1223,1?1208,1?1221,1?1117,1?1126,1?1719,1?1832,1;roomGoodStatus:8;fengweiHotel:50,0?70,0?78,0?70,0?75,0?78,0?73,0?76,0?75,0;canInterGameList:10?7?13?8?57?26?12?4?6?9?60?17?16?31?79?82?86?80?92?101?104?103?;HeTong:false?true?false?false?true?true?true?true?false?true?false;NaiNaiStatus:0;nianHuoExistIdTab:1706?1708?;curGuanQiaNum_nls:4;guankaCaowei_nls:5,5,5,5,5,6,7,7;freeJInshouzhi_nls:0;freePaixu_nls:0;isTongGuan_nls:false;curJuQingUnLockIndex:;curUnLockMainTaskInfo:536?329?10329?false;firstStepIndex:8;taofen:0?0;shoulie:0?0?0;ditan1;GameGuideStepIndex:0;ChatRecordData:DH_LinShan&DH_1,false|DH_2,false|DH_3,false|DH_4,false|DH_6,false|DH_7,false|DH_8,false|DH_9,false|DH_10,false|DH_11,false#WX_LinXie&WX_1,true|WX_4,true|WX_6,true|WX_13,true#WX_CunZhang&WX_2,true|WX_3,true|WX_5,true|WX_8,true|WX_9,true|WX_11,true|WX_12,true|WX_14,true|WX_19,true|WX_20,true|WX_23,true|WX_24,true|WX_26,true|WX_28,true|WX_30,true#DH_ChuLiang&DH_5,false#WX_LiNa&WX_7,true|WX_16,true#WX_ChuLiang&WX_10,true|WX_22,true|WX_25,true|WX_29,true#WX_ChuYao&WX_15,true|WX_17,true|WX_18,true#WX_LinShan&WX_21,true|WX_27,true#DH_ChuLi&DH_12,false#;myStockData:小众汽车&18&1000000?逆风快递&100&1000000?蜜雷冰城&8&1000000?横大集团&219&1000000?拼夕夕&134&1000000?;myFangChanData:undefined&undefined&undefined?;MeiShiHeTong:true;wanFaShouYiData:美食街&12946920?顾氏水产&11040?快递&56800?下水道&112000?;meiShiJieListData:0&false&1&380&16&1&16684&1?1&true&1&380&33&1&18538&1?2&true&1&380&55&1&20391&1?15&true&1&380&3399999&1&44491&1?4&true&1&380&353&1&24099&1?5&true&1&380&606&1&25953&1?6&true&1&380&1699&1&27807&1?7&true&1&380&2656&1&29660&1?12&true&1&380&242856&1&38930&1?9&true&1&380&21249&1&33368&1?10&true&1&380&33999&1&35222&1?11&true&1&380&141665&1&37076&1?8&true&1&380&7499&1&31514&1?26&false&1&380&33999&1&64883&1?24&true&1&380&7499&1&61175&1?23&true&1&380&2656&1&59321&1?16&true&1&380&16&1&46345&1?17&true&1&380&33&1&48199&1?18&true&1&380&55&1&50052&1?19&false&1&380&84&1&51906&1?20&true&1&380&353&1&53760&1?21&false&1&380&606&1&55614&1?31&false&1&380&3399999&1&74152&1?3&true&1&380&84&1&22245&1?14&true&1&380&1888888&1&42637&1?25&false&1&380&21249&1&63029&1?27&false&1&380&141665&1&66737&1?28&false&1&380&242856&1&68590&1?30&true&1&380&1888888&1&72298&1?13&true&1&380&1062499&1&40783&1?29&true&1&380&1062499&1&70444&1?32&true&1&380&1888888&1&76006&1?22&true&1&380&1699&1&57468&1?33&false&1&380&3399999&1&77860&1?;jieSuoBaseIQData:JiuGuan&52?MeiShiJie&58?;daoyeGoodList:;wenZiUnLockList:1?1?1?0?1?1?1?1?1?1?1?1?1?1?1?1?1?0?0?0?0?0?1?1?1?1?1?1?1?1?0?1?1?1?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?;successLevels:14?0?1?2?4?5?6?7?8?9?10?11?12?13?15?16?22?23?24?25?26?27?28?29?31?32?;daoYeIndex:1;guWanShiChangIndex:4;yuanBao:20435;haomendaojishi:60555;jinBiYuanBaoShowStatus:1;YBLeftTime:1323;isChongFanHaoMen:true;isFinishTask540:false;'
|
||
|
|
||
|
//主任务540
|
||
|
// ceshiData = 'money:1076449121991387400;userIQ:60;day:86;bagGood:1710,1?1701,1?1713,1?1712,1?1743,1?1709,2?1750,1?1609,6?1611,7?1601,2?1602,1?1607,3?1604,1?1711,2?1315,2?1324,1?1614,4?1610,3?1613,2?1618,2?1612,3?1617,2?1008,1?1012,1?1616,2?1621,2?1719,1?1717,101?1722,1?1220,1?1211,1?1219,1?1217,1;roomGoodStatus:8;fengweiHotel:1,0?1,0?1,0?1,0?1,0?1,0?1,0?1,0?1,0;canInterGameList:10?7?13?8?57?26?12?4?6?9?60?17?16?31?79?82?86?80?92?101?104?103?116?;HeTong:false?true?false?false?true?true?true?true?false?true;NaiNaiStatus:0;nianHuoExistIdTab:1706?1708?;curGuanQiaNum_nls:4;guankaCaowei_nls:5,5,5,5,5,6,7,7;freeJInshouzhi_nls:0;freePaixu_nls:0;isTongGuan_nls:false;curJuQingUnLockIndex:;curUnLockMainTaskInfo:540?77?10077?false;firstStepIndex:10;taofen:0?0;shoulie:0?0?0;ditan:false?false?false;GameGuideStepIndex:0;ChatRecordData:DH_LinShan&DH_1,false|DH_2,false|DH_3,false|DH_4,false|DH_6,false|DH_7,false|DH_8,false|DH_9,false|DH_10,false|DH_11,false#WX_LinXie&WX_1,true|WX_4,true|WX_6,true|WX_13,true#WX_CunZhang&WX_2,true|WX_3,true|WX_5,true|WX_8,true|WX_9,true|WX_11,true|WX_12,true|WX_14,true|WX_19,true|WX_20,true|WX_23,true|WX_24,true|WX_26,true|WX_28,true|WX_30,true#DH_ChuLiang&DH_5,false#WX_LiNa&WX_7,true|WX_16,true#WX_ChuLiang&WX_10,true|WX_22,true|WX_25,true|WX_29,true#WX_ChuYao&WX_15,true|WX_17,true|WX_18,true#WX_LinShan&WX_21,true|WX_27,true#DH_ChuLi&DH_12,false#XG_LinShan&XG_1,true#XG_LinXie&XG_2,true#XG_CunZhang&XG_3,true|XG_4,true|XG_6,true#XG_ChuLiang&XG_5,true#XG_NvJiang&XG_QL1,true#;myStockData:林氏集团&1013&10000000?;myFangChanData:;MeiShiHeTong:true;wanFaShouYiData:美食街&881145420?顾氏水产&123840?快递&619200?下水道&1456000?茶场&2712?;meiShiJieListData:0&false&1&380&16&1&16684&1?1&true&1&380&33&1&18538&1?2&true&1&380&55&1&20391&1?15&false&1&380&3399999&1&44491&1?4&true&1&380&353&1&24099&1?5&true&1&380&606&1&25953&1?6&true&1&380&1699&1&27807&1?7&true&1&380&2656&1&29660&1?12&true&1&380&242856&1&38930&1?9&false&1&380&21249&1&33368&1?10&false&1&380&33999&1&35222&1?11&false&1&380&141665&1&37076&1?8&true&1&380&7499&1&31514&1?26&true&1&380&33999&1&64883&1?24&true&1&380&7499&1&61175&1?23&true&1&380&2656&1&59321&1?16&false&1&380&16&1&46345&1?17&false&1&380&33&1&48199&1?18&true&1&380&55&1&50052&1?19&true&1&380&84&1&51906&1?20&true&1&380&353&1&53760&1?21&true&1&380&606&1&55614&1?31&false&1&380&3399999&1&74152&1?3&true&1&380&84&1&22245&1?14&false&1&380&1888888&1&42637&1?25&true&1&380&21249&1&63029&1?27&true&1&380&141665&1&66737&1?28&true&1&380&242856&1&68590&1?30&true&1&380&1888888&1&72298&1?13&true&1&380&1062499&1&40783&1?29&true&1&380&1062499&1&70444&1?32&true&1&380&1888888&1&76006&1?22&true&1&380&1699&1&57468&1?33&true&1&380&3399999&1&77860&1?;jieSuoBaseIQData:JiuGuan&50?MeiShiJie&50?;daoyeGoodList:;wenZiUnLockList:1?1?1?0?1?1?1?1?1?1?0?0?1?1?1?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?;successLevels:14?0?1?2?4?5?6?7?8?12?;daoYeIndex:1;guWanShiChangIndex:5;yuanBao:10655407;haomendaojishi:83606;jinBiYuanBaoShowStatus:1;YBLeftTime:0;isChongFanHaoMen:true;'
|
||
|
// ceshiData = 'money:10979337794;userIQ:82;day:176;bagGood:1701,1?1205,1?1212,1?1710,1?1213,4?1215,1?1211,3?1216,1?1214,2?1217,2?1221,1?1713,1?1516,2?1712,1?1515,2?1315,3?1209,1?1219,2?1502,1?1308,1?1311,2?1207,2?1204,1?1208,1?1008,1?1011,1?1017,1?1009,3?1002,1?1013,1?1018,1?1003,1?1010,2?1318,4?1321,5?1319,6?1320,2?1313,2?1314,5?1709,2?1517,2?1513,1?1748,1?1523,1?1711,1?1617,4?1610,5?1614,6?1613,1?1612,4?1611,2?1609,2?1608,5?1606,2?1615,1?1758,1?1310,2?1316,2?1762,1?1317,1?1322,2?1618,2?1616,1?1719,1?1813,1?1827,2?1825,1?1824,1?1804,1?1722,1?1220,1?1906,1?1904,1?1903,1?1919,1?1911,3?1910,4?1780,1?1915,5?1922,1?1914,4?1917,5?1913,8?1912,2?1916,3?1781,1?1909,5?1782,1?1908,5?1920,2?1783,1?1784,1?1785,1?1786,1?1787,1?1788,1;roomGoodStatus:8;fengweiHotel:50,0?70,0?78,0?70,0?75,0?78,0?73,0?76,0?75,0;canInterGameList:10?7?13?8?57?26?12?4?6?9?60?17?16?31?79?82?86?80?92?101?104?103?116?;HeTong:false?true?false?false?true?true?true?true?false?true?true;NaiNaiStatus:0;nianHuoExistIdTab:1706?1708?;curGuanQiaNum_nls:3;guankaCaowei_nls:5,5,5,5,5,6,7,7;freeJInshouzhi_nls:0;freePaixu_nls:1;isTongGuan_nls:false;curJuQingUnLockIndex:;curUnLockMainTaskInfo:540?160?10160?false;firstStepIndex:10;taofen:0?0;shoulie:0?0?0;ditan:false?false?false;GameGuideStepIndex:0;ChatRecordData:DH_LinShan&DH_1,false|DH_2,false|DH_3,false|DH_4,false|DH_6,false|DH_7,false|DH_8,false|DH_9,false|DH_10,false|DH_11,false#WX_LinXie&WX_1,true|WX_4,true|WX_6,true|WX_13,true#WX_CunZhang&WX_2,true|WX_3,true|WX_5,true|WX_8,true|WX_9,true|WX_11,true|WX_12,true|WX_14,true|WX_19,true|WX_20,true|WX_23,true|WX_24,true|WX_26,true|WX_28,true|WX_30,true#DH_ChuLiang&DH_5,false#WX_LiNa&WX_7,true|WX_16,true#WX_ChuLiang&WX_10,true|WX_22,true|WX_25,true|WX_29,true#WX_ChuYao&WX_15,true|WX_17,true|WX_18,true#WX_LinShan&WX_21,true|WX_27,true#DH_ChuLi&DH_12,false#XG_LinShan&XG_1,true#XG_LinXie&XG_2,true#XG_CunZhang&XG_3,true|XG_4,true|XG_6,true#XG_ChuLiang&XG_5,true#XG_NvJiang&XG_QL1,true#;myStockData:林氏集团&693&10000000?;myFangChanData:;MeiShiHeTong:true;wanFaShouYiData:美食街&1231025088?顾氏水产&7840?快递&39200?下水道&78400?茶场&1296?;meiShiJieListData:0&false&1&380&16&1&16684&1?1&true&1&380&33&1&18538&1?2&true&1&380&55&1&20391&1?15&false&1&380&3399999&1&44491&1?4&true&1&380&353&1&24099&1?5&true&1&380&606&1&25953&1?6&false&1&380&1699&1&27807&1?7&true&1&380&2656&1&29660&1?12&false&1&380&242856&1&38930&1?9&true&1&380&21249&1&33368&1?10&true&1&380&33999&1&35222&1?11&false&1&380&141665&1&37076&1?8&true&1&380&7499&1&31514&1?26&true&1&380&33999&1&64883&1?24&false&1&380&7499&1&61175&1?23&false&1&380&2656&1&59321&1?16&false&1&380&16&1&46345&1?17&true&1&380&33&1&48199&1?18&true&1&380&55&1&50052&1?19&true&1&380&84&1&51906&1?20&true&1&380&353&1&53760&1?21&false&1&380&606&1&55614&1?31&false&1&380&3399999&1&74152&1?3&false&1&380&84&1&22245&1?14&true&1&380&1888888&1&42637&1?25&true&1&380&21249&1&63029&1?27&true&1&380&141665&1&66737&1?28&true&1&380&242856&1&68590&1?30&false&1&380&1888888&1&72298&1?13&true&1&380&1062499&1&40783&1?29&true&1&380&1062499&1&70444&1?32&false&1&380&1888888&1&76006&1?22&false&1&380&1699&1&57468&1?33&false&1&380&3399999&1&77860&1?;jieSuoBaseIQData:JiuGuan&50?MeiShiJie&56?;daoyeGoodList:1780&1&10&秦氏部落?1781&1&10&秦氏部落?1782&1&10&秦氏部落?1783&1&10&秦氏部落?1784&1&10&秦氏部落?1785&1&10&秦氏部落?1786&1&10&秦氏部落?1787&1&10&秦氏部落?1788&1&10&秦氏部落?;wenZiUnLockList:1?1?1?0?1?1?1?1?1?1?1?1?1?1?1?1?1?0?0?0?0?0?1?1?1?1?1?1?1?1?0?1?1?1?1?1?1?1?1?1?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?0?;successLevels:14?0?1?2?4?5?6?7?8?9?10?11?12?13?15?16?22?23?24?25?26?27?28?29?31?32?33?34?35?36?37?38?;daoYeIndex:1;guWanShiChangIndex:5;yuanBao:25536;haomendaojishi:72749;jinBiYuanBaoShowStatus:1;YBLeftTime:0;isChongFanHaoMen:true;isFinishTask540:false;'
|
||
|
let arr1 = ceshiData.split(";");
|
||
|
console.log(arr1)
|
||
|
// GameSecondLevelManage_xpz.setStartCellData()
|
||
|
// let xpz_SaveGameData = User.getSaveGameProgressData_XPZ()
|
||
|
|
||
|
for (let value of arr1) {
|
||
|
let arr2 = value.split(":");
|
||
|
let keyName = arr2[0]
|
||
|
let keyValue = arr2[1]
|
||
|
if (keyName == 'money') {
|
||
|
let moneyData = Number(keyValue)
|
||
|
//console.log(moneyData,'moneyData')
|
||
|
User.setMoney(moneyData, false)
|
||
|
} else if (keyName == 'userIQ') {
|
||
|
let userIQ = Number(keyValue)
|
||
|
User.setUserIQ(userIQ, false)
|
||
|
} else if (keyName == 'day') {
|
||
|
let dayData = Number(keyValue)
|
||
|
User.setDay(dayData, false)
|
||
|
}else if (keyName == 'proper_TiLi') {
|
||
|
let dayData = Number(keyValue)
|
||
|
User.setProper_TiLi(dayData, false)
|
||
|
}else if (keyName == 'proper_NaoLi') {
|
||
|
let dayData = Number(keyValue)
|
||
|
User.setProper_NaoLi(dayData, false)
|
||
|
}else if (keyName == 'curGameLevelIndex') {
|
||
|
let dayData = Number(keyValue)
|
||
|
User.setCurGameLevelIndex(dayData)
|
||
|
} else if (keyName == 'bagGood') {
|
||
|
let array1 = keyValue.split("?");
|
||
|
let bagList = []
|
||
|
for (let i = 0; i < array1.length; i++) {
|
||
|
let urlData = array1[i].split(",");
|
||
|
let bagData = { goodId: 0, goodNum: 0, leftTimelinessNum: 0 }
|
||
|
bagData.goodId = Number(urlData[0])
|
||
|
bagData.goodNum = Number(urlData[1])
|
||
|
bagList.push(bagData)
|
||
|
}
|
||
|
|
||
|
console.log(bagList, 'bagGood')
|
||
|
User.setBagGoodsList(bagList, false)
|
||
|
|
||
|
}
|
||
|
|
||
|
// else if (keyName == 'roomGoodStatus') {
|
||
|
// User.setRoomGoodStatus(Number(keyValue), false)
|
||
|
|
||
|
// }
|
||
|
// else if (keyName == 'canInterGameList') {
|
||
|
// // let hetongDataA = 'HeTong:'+hetongData.buyDitan+'?'+hetongData.buyChiTang+'?'+hetongData.buildChiTang+'?'+hetongData.isBuildChiTangFinish+';'
|
||
|
|
||
|
// //canInterGameList:13?10?8??
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// for (let i = 0; i < array1.length; i++) {
|
||
|
// if (array1[i] != '') {
|
||
|
// User.setCanInterGameList(Number(array1[i]), false)
|
||
|
// }
|
||
|
// }
|
||
|
// }
|
||
|
// else if (keyName == 'HeTong') {
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let hetongData = User.getUserHeTong()
|
||
|
// //HeTong:false?false?false?false;
|
||
|
// if (array1[0] == 'false') {
|
||
|
// hetongData.buyMengChongGuan = false
|
||
|
// } else if (array1[0] == 'true') {
|
||
|
// hetongData.buyMengChongGuan = true
|
||
|
// }
|
||
|
// if (array1[1] == 'false') {
|
||
|
// hetongData.buyFengHuangZuYu = false
|
||
|
// } else if (array1[1] == 'true') {
|
||
|
// hetongData.buyFengHuangZuYu = true
|
||
|
// }
|
||
|
// if (array1[2] == 'false') {
|
||
|
// hetongData.buyChuShouDaLou = false
|
||
|
// } else if (array1[2] == 'true') {
|
||
|
// hetongData.buyChuShouDaLou = true
|
||
|
// }
|
||
|
// if (array1[3] == 'false') {
|
||
|
// hetongData.buyFengTouDaSha = false
|
||
|
// } else if (array1[3] == 'true') {
|
||
|
// hetongData.buyFengTouDaSha = true
|
||
|
// }
|
||
|
// if (array1[4] == 'false') {
|
||
|
// hetongData.buyPeiXunLou = false
|
||
|
// } else if (array1[4] == 'true') {
|
||
|
// hetongData.buyPeiXunLou = true
|
||
|
// }
|
||
|
// if (array1[5] == 'false') {
|
||
|
// hetongData.buyClub = false
|
||
|
// } else if (array1[5] == 'true') {
|
||
|
// hetongData.buyClub = true
|
||
|
// }
|
||
|
// if (array1[6] == 'false') {
|
||
|
// hetongData.buyPaiMaiHang = false
|
||
|
// } else if (array1[6] == 'true') {
|
||
|
// hetongData.buyPaiMaiHang = true
|
||
|
// }
|
||
|
// if (array1[7] == 'false') {
|
||
|
// hetongData.buyBaiMaHuiSuo = false
|
||
|
// } else if (array1[7] == 'true') {
|
||
|
// hetongData.buyBaiMaHuiSuo = true
|
||
|
// }
|
||
|
// if (array1[8] == 'false') {
|
||
|
// hetongData.buyMeiZhuang = false
|
||
|
// } else if (array1[8] == 'true') {
|
||
|
// hetongData.buyMeiZhuang = true
|
||
|
// }
|
||
|
|
||
|
// if (array1[9] == 'false') {
|
||
|
// hetongData.buyWaiXing = false
|
||
|
// } else if (array1[9] == 'true') {
|
||
|
// hetongData.buyWaiXing = true
|
||
|
// }
|
||
|
// if (array1[10] == 'false') {
|
||
|
// hetongData.buyWangShiChanYe = false
|
||
|
// } else if (array1[10] == 'true') {
|
||
|
// hetongData.buyWangShiChanYe = true
|
||
|
// }
|
||
|
// if (array1[11] == 'false') {
|
||
|
// hetongData.buyXiuXianNongZhuang = false
|
||
|
// } else if (array1[11] == 'true') {
|
||
|
// hetongData.buyXiuXianNongZhuang = true
|
||
|
// }
|
||
|
// User.setUserHeTong(hetongData, false)
|
||
|
// }
|
||
|
// else if(keyName == 'fengweiHotel'){
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// //console.log(array1,'fengweiHotel')
|
||
|
// let data= FengWeiManager.loadServerData(array1)
|
||
|
|
||
|
// User.setFengWeiHotelList(data,false)
|
||
|
|
||
|
|
||
|
// }
|
||
|
// else if(keyName == 'NaiNaiStatus'){
|
||
|
// User.setNaiNaiStatus(Number(keyValue),false)
|
||
|
|
||
|
// }
|
||
|
|
||
|
// else if(keyName == 'curGuanQiaNum_nls'){
|
||
|
// if(Number(keyValue)){
|
||
|
// NewDataManage_nls.setCurGuanQiaNum(Number(keyValue))
|
||
|
// }
|
||
|
// }else if(keyName == 'guankaCaowei_nls'){
|
||
|
// let GuankaCaoweiObj = NewDataManage_nls.getGuankaCaoweiObj()
|
||
|
// let arrayCaoweinls = keyValue.split(",");
|
||
|
// for(let i = 0;i<GuankaCaoweiObj.length;i++){
|
||
|
// if(Number(GuankaCaoweiObj[i])){
|
||
|
// GuankaCaoweiObj[i] = Number(arrayCaoweinls[i])
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
// }else if(keyName == 'freeJInshouzhi_nls'){
|
||
|
// if(Number(keyValue)){
|
||
|
// NewDataManage_nls.setFreeJInshouzhiIndex(Number(keyValue))
|
||
|
// }
|
||
|
// }else if(keyName == 'freePaixu_nls'){
|
||
|
// if(Number(keyValue)){
|
||
|
// NewDataManage_nls.setFreePaixu(Number(keyValue))
|
||
|
// }
|
||
|
// }else if(keyName == 'isTongGuan_nls'){
|
||
|
// if(keyValue == 'false'){
|
||
|
// NewDataManage_nls.setIsTongGuan(false)
|
||
|
// }else if(keyValue == 'true'){
|
||
|
// NewDataManage_nls.setIsTongGuan(true)
|
||
|
// }
|
||
|
// }
|
||
|
else if (keyName == 'curJuQingUnLockIndex') {
|
||
|
User.setCurJuQingUnLockIndex(keyValue, false)
|
||
|
}
|
||
|
else if (keyName == 'curUnLockMainTaskInfo') {
|
||
|
let array1 = keyValue.split("?");
|
||
|
let IsFinish = false
|
||
|
if (array1[3] == 'false') {
|
||
|
IsFinish = false
|
||
|
} else {
|
||
|
IsFinish = true
|
||
|
}
|
||
|
let taskInfo = {
|
||
|
Id: Number(array1[0]),
|
||
|
StartDay: Number(array1[1]),
|
||
|
EndDay: Number(array1[2]),
|
||
|
IsFinish: IsFinish,
|
||
|
}
|
||
|
User.setCurUnLockMainTaskInfo(taskInfo, false)
|
||
|
TaskManager.setCurUnLockMainTaskInfo(Number(array1[0]),false)
|
||
|
} else if (keyName == 'curUnLockSubTaskInfo') {
|
||
|
|
||
|
let array1 = keyValue.split("?");
|
||
|
let IsFinish = false
|
||
|
if (array1[3] == 'false') {
|
||
|
IsFinish = false
|
||
|
} else {
|
||
|
IsFinish = true
|
||
|
}
|
||
|
let taskInfo = {
|
||
|
Id: Number(array1[0]),
|
||
|
curProgressNum: Number(array1[1]),
|
||
|
targetProgressNum: Number(array1[2]),
|
||
|
IsFinish: IsFinish,
|
||
|
}
|
||
|
User.setCurUnLockSubTaskInfo(taskInfo, false)
|
||
|
} else if (keyName == 'ChatRecordData') {
|
||
|
// ChatRecordData:
|
||
|
|
||
|
// DH_NaiNai&DH_1,false
|
||
|
// RiJiBen&RJB_1,true#
|
||
|
// DH_XiaoMaiBu& DH_2,false|DH_3,false
|
||
|
// WX_YiSheng&WX_1,false#
|
||
|
let array1 = keyValue.split("#");
|
||
|
if (array1.length > 0) {
|
||
|
for (let i = 0; i < array1.length; i++) {
|
||
|
let data = array1[i]
|
||
|
let array2 = data.split("&");
|
||
|
if (array2.length > 1) {
|
||
|
let key = array2[0]
|
||
|
let array3 = array2[1].split("|");
|
||
|
for (let j = 0; j < array3.length; j++) {
|
||
|
let value4 = array3[j].split(",");
|
||
|
if (value4[1] == 'false') {
|
||
|
User.setChatRecordData(key, value4[0], false, false)
|
||
|
} else {
|
||
|
User.setChatRecordData(key, value4[0], true, false)
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
// else if(keyName == 'nianHuoExistIdTab'){
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// for(let i = 0; i <array1.length;i++){
|
||
|
// if(array1[i]!=''){
|
||
|
// User.setNianHuoExistIdTab(Number(array1[i]),false)
|
||
|
// }
|
||
|
// }
|
||
|
// }
|
||
|
else if (keyName == 'daoyeGoodList') {
|
||
|
let array1 = keyValue.split("?");
|
||
|
let tempArr = []
|
||
|
let isHaveData = false
|
||
|
for (let i = 0; i < array1.length; i++) {
|
||
|
if (array1[i] != '') {
|
||
|
isHaveData = true
|
||
|
let array2 = array1[i].split("&")
|
||
|
let goodId = Number(array2[0] || 0)
|
||
|
let buyNum = Number(array2[1] || 0)
|
||
|
let buyPercent = Number(array2[2] || 0)
|
||
|
let gameType = array2[3]
|
||
|
|
||
|
let tempTab = { goodId: goodId, buyNum: buyNum, buyPercent: buyPercent, gameType: gameType }
|
||
|
tempArr.push(tempTab)
|
||
|
}
|
||
|
}
|
||
|
if (isHaveData) {
|
||
|
User.setDaoyeGoodList(tempArr, false)
|
||
|
}
|
||
|
|
||
|
}
|
||
|
else if (keyName == 'daoYeIndex') {
|
||
|
if (Number(keyValue)) {
|
||
|
User.setDaoyeIndex(Number(keyValue), false)
|
||
|
}
|
||
|
}
|
||
|
else if (keyName == 'firstStepIndex') {
|
||
|
if (Number(keyValue)) {
|
||
|
User.setFirstStepIndex(Number(keyValue), false)
|
||
|
}
|
||
|
|
||
|
}
|
||
|
else if (keyName == 'GameGuideStepIndex') {
|
||
|
if (Number(keyValue)) {
|
||
|
User.setGameGuideStepIndex(Number(keyValue), false)
|
||
|
}
|
||
|
}
|
||
|
else if(keyName == 'myStockData'){
|
||
|
let array1 = keyValue.split("?");
|
||
|
let tempTab = {}
|
||
|
let isHaveData = false
|
||
|
for(let i = 0; i <array1.length;i++){
|
||
|
if(array1[i]!=''){
|
||
|
|
||
|
let array2 = array1[i].split("&")
|
||
|
let stockName = array2[0]
|
||
|
let buyPrice = array2[1]
|
||
|
let prossess = array2[2]
|
||
|
if(stockName != 'undefined'){
|
||
|
isHaveData = true
|
||
|
tempTab[stockName] = {}
|
||
|
tempTab[stockName].stockName = stockName
|
||
|
tempTab[stockName].buyPrice = Number(buyPrice||0)
|
||
|
tempTab[stockName].prossess = prossess
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
if(isHaveData){
|
||
|
User.setMyStockDatCovre(tempTab,false)
|
||
|
}
|
||
|
}else if (keyName == 'curTaskIndex') {
|
||
|
if (Number(keyValue)) {
|
||
|
User.setCurTaskIndex(Number(keyValue))
|
||
|
}
|
||
|
}else if (keyName == 'wanFaShouYiData') {
|
||
|
let array1 = keyValue.split("?");
|
||
|
let tempTab = {}
|
||
|
let isHaveData = false
|
||
|
for (let i = 0; i < array1.length; i++) {
|
||
|
if (array1[i] != '') {
|
||
|
isHaveData = true
|
||
|
let array2 = array1[i].split("&")
|
||
|
let gameName = array2[0]
|
||
|
let num = Number(array2[1] || 0)
|
||
|
tempTab[gameName] = num
|
||
|
}
|
||
|
}
|
||
|
if (isHaveData) {
|
||
|
User.setAllGameShouYi(tempTab, false)
|
||
|
}
|
||
|
|
||
|
}
|
||
|
// else if(keyName == 'taofen'){
|
||
|
// let taofenArray = User.getTaofenArray()
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// taofenArray.tanhuang = Number(array1[0]) || 0
|
||
|
// taofenArray.xichen = Number(array1[1]) || 0
|
||
|
|
||
|
// User.setTaofenArray(taofenArray,false)
|
||
|
// }else if(keyName == 'shoulie'){
|
||
|
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// User.setSLCGongJianAd(Number(array1[0]) || 0,false)
|
||
|
// User.setSLCLieQiangAd(Number(array1[1]) || 0,false)
|
||
|
// User.setSLCWangAd(Number(array1[2]) || 0,false)
|
||
|
// }else if(keyName == 'diaoyu'){
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let diaoyuList = User.getDiaoyuData()
|
||
|
// if(diaoyuList.length == 0){
|
||
|
|
||
|
// }else{
|
||
|
// let dataVal = diaoyuList[0].dataVal
|
||
|
|
||
|
// if(array1[0] == 'false'){
|
||
|
// dataVal[1].unlock = false
|
||
|
// }else{
|
||
|
// dataVal[1].unlock = true
|
||
|
// }
|
||
|
// dataVal[1].spTimes= Number(array1[1]||0)
|
||
|
// dataVal[1].freeTimes= Number(array1[2]||0)
|
||
|
|
||
|
|
||
|
|
||
|
// if(array1[3] == 'false'){
|
||
|
// dataVal[2].unlock = false
|
||
|
// }else{
|
||
|
// dataVal[2].unlock = true
|
||
|
// }
|
||
|
|
||
|
// dataVal[2].spTimes= Number(array1[4]||0)
|
||
|
// dataVal[2].freeTimes=Number(array1[5]||0)
|
||
|
// if(array1[6] == 'false'){
|
||
|
// dataVal[3].unlock = false
|
||
|
// }else{
|
||
|
// dataVal[3].unlock = true
|
||
|
// }
|
||
|
// dataVal[3].spTimes= Number(array1[7]||0)
|
||
|
// dataVal[3].freeTimes= Number(array1[8]||0)
|
||
|
// User.setDiaoyuData(diaoyuList,false)
|
||
|
// }
|
||
|
// }else if(keyName == 'ditan'){
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let ditanList = User.getDitanData()
|
||
|
// if(ditanList.length == 0){
|
||
|
|
||
|
// }else{
|
||
|
|
||
|
// if(array1[0] == 'false'){
|
||
|
// ditanList[0].dataVal = false
|
||
|
// }else{
|
||
|
// ditanList[0].dataVal = true
|
||
|
// }
|
||
|
// if(array1[1] == 'false'){
|
||
|
// ditanList[1].dataVal = false
|
||
|
// }else{
|
||
|
// ditanList[1].dataVal = true
|
||
|
// }
|
||
|
// if(array1[2] == 'false'){
|
||
|
// ditanList[2].dataVal = false
|
||
|
// }else{
|
||
|
// ditanList[2].dataVal = true
|
||
|
// }
|
||
|
// // if(array1[3] == 'false'){
|
||
|
// // ditanList[3].dataVal = false
|
||
|
// // }else{
|
||
|
// // ditanList[3].dataVal = true
|
||
|
// // }
|
||
|
// User.setDitanData(ditanList,false)
|
||
|
|
||
|
// }
|
||
|
// }else if(keyName == 'myFangChanData'){
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let tempTab = {}
|
||
|
// let isHaveData = false
|
||
|
// for(let i = 0; i <array1.length;i++){
|
||
|
// if(array1[i]!=''){
|
||
|
|
||
|
// let array2 = array1[i].split("&")
|
||
|
// let FangChanName = array2[0]
|
||
|
// let buyPrice = array2[1]
|
||
|
// let prossess = array2[2]
|
||
|
// if(FangChanName != 'undefined'){
|
||
|
// isHaveData = true
|
||
|
// tempTab[FangChanName] = {}
|
||
|
// tempTab[FangChanName].stockName = FangChanName
|
||
|
// tempTab[FangChanName].buyPrice = Number(buyPrice||0)
|
||
|
// tempTab[FangChanName].prossess = prossess
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
// }
|
||
|
// if(isHaveData){
|
||
|
// User.setMyFangChanData(tempTab,false)
|
||
|
// }
|
||
|
|
||
|
// }else if(keyName == 'MeiShiHeTong'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// let BaoweiData = {isQianYue:b}
|
||
|
// User.setBaoweiData(BaoweiData,false)
|
||
|
// }
|
||
|
|
||
|
// else if(keyName == 'meiShiJieListData'){
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let tempArr = []
|
||
|
// let isHaveData = false
|
||
|
// for(let i = 0; i <array1.length;i++){
|
||
|
// if(array1[i]!=''){
|
||
|
// isHaveData = true
|
||
|
// let array2 = array1[i].split("&")
|
||
|
// let IndustryId = Number(array2[0] ||0)
|
||
|
// let isLock = true
|
||
|
// if(array2[1] == 'false'){
|
||
|
// isLock = false
|
||
|
// }else{
|
||
|
// isLock = true
|
||
|
// }
|
||
|
// let IndustryNum = Number(array2[2] ||0)
|
||
|
// let levelNum = Number(array2[3] ||0)
|
||
|
// let levelUpMoney = Number(array2[4] ||0)
|
||
|
// let earnMoneyTime = Number(array2[5] ||0)
|
||
|
// let earnMoney = Number(array2[6] ||0)
|
||
|
// let timeAdd = Number(array2[7] ||0)
|
||
|
// // tempTab[gameName] = num
|
||
|
// let tempTab = {IndustryId:IndustryId,isLock:isLock,IndustryNum:IndustryNum,levelNum:levelNum,
|
||
|
// levelUpMoney:levelUpMoney,earnMoneyTime:earnMoneyTime,earnMoney:earnMoney,timeAdd:timeAdd}
|
||
|
// tempArr.push(tempTab)
|
||
|
// }
|
||
|
// }
|
||
|
// if(isHaveData){
|
||
|
// User.setIndustryList(tempArr,false)
|
||
|
// }
|
||
|
|
||
|
// }else if(keyName == 'jieSuoBaseIQData'){
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let tempTab = {}
|
||
|
// let isHaveData = false
|
||
|
// for(let i = 0; i <array1.length;i++){
|
||
|
// if(array1[i]!=''){
|
||
|
// isHaveData = true
|
||
|
// let array2 = array1[i].split("&")
|
||
|
// let gameName = array2[0]
|
||
|
// let num = Number(array2[1] ||0)
|
||
|
// tempTab[gameName] = num
|
||
|
// }
|
||
|
// }
|
||
|
// if(isHaveData){
|
||
|
// User.setALlJieSuoBaseIQ(tempTab,false)
|
||
|
// }
|
||
|
// }
|
||
|
// else if (keyName == 'wenZiUnLockList') {
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let tempArr = []
|
||
|
|
||
|
// for (let i = 0; i < array1.length; i++) {
|
||
|
// if (array1[i] != '') {
|
||
|
// tempArr.push(Number(array1[i]))
|
||
|
// }
|
||
|
// }
|
||
|
// if (tempArr.length > 0) {
|
||
|
// User.setLevelAryy_Cover(tempArr, false)
|
||
|
// }
|
||
|
|
||
|
// } else if (keyName == 'successLevels') {
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let tempArr = []
|
||
|
|
||
|
// for (let i = 0; i < array1.length; i++) {
|
||
|
// if (array1[i] != '') {
|
||
|
// tempArr.push(Number(array1[i]))
|
||
|
// }
|
||
|
// }
|
||
|
// if (tempArr.length > 0) {
|
||
|
// User.setSuccessLevelsCover(tempArr, false)
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
// else if(keyName == 'guWanShiChangIndex'){
|
||
|
// if(Number(keyValue)){
|
||
|
// User.setGuWanShiChangIndex(Number(keyValue),false)
|
||
|
// }
|
||
|
// }else if(keyName == 'yuanBao'){
|
||
|
// let yuanBao = Number(keyValue)
|
||
|
// User.setYuanBao(yuanBao,false)
|
||
|
// }
|
||
|
// else if (keyName == 'haomendaojishi') {
|
||
|
// let daojishi = Number(keyValue)
|
||
|
// User.setChongFanHaoMenTimes(daojishi, false)
|
||
|
// }
|
||
|
// else if(keyName == 'YBLeftTime'){
|
||
|
// let leftTime = Number(keyValue)
|
||
|
// User.setAutoHeChangLeftTime(leftTime,false)
|
||
|
// }else if(keyName == 'jinBiYuanBaoShowStatus'){
|
||
|
// let status = Number(keyValue)
|
||
|
// User.setJinBiYuanBaoShowStatus(status,false)
|
||
|
// }else if(keyName == 'isChongFanHaoMen'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// User.setIsChongFanHaoMen(b,false)
|
||
|
// }else if(keyName == 'isFinishTask540'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// User.setIsFinishTask540(b,false)
|
||
|
// }else if(keyName == 'isUnlockBaiCaoJiShuoMing'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// User.setBaiCaoJiShuoMingUnlock(b,false)
|
||
|
// }else if(keyName == 'newRoomStatus'){
|
||
|
// User.setNewRoomStatus(Number(keyValue),false)
|
||
|
// }else if(keyName == 'xiaoYanZhanChangStatus'){
|
||
|
// User.setXiaoYanZhanChangStatus(Number(keyValue),false)
|
||
|
// }else if(keyName == 'isFinishTask546'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// User.setIsFinishTask546(b,false)
|
||
|
// }
|
||
|
// else if (keyName == 'treeUnlockIndex') {
|
||
|
// User.setTreeUnlockIndex(Number(keyValue), false)
|
||
|
// }
|
||
|
// else if(keyName == 'isFinishTask556'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// User.setIsFinishTask556(b,false)
|
||
|
// }else if(keyName == 'isFinishFKSC'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// User.setIsFinishFKSC(b,false)
|
||
|
// }else if(keyName == 'isFinishTask567'){
|
||
|
// let b = true
|
||
|
// if(keyValue == 'false'){
|
||
|
// b = false
|
||
|
// }else{
|
||
|
// b = true
|
||
|
// }
|
||
|
// User.setIsFinishTask567(b,false)
|
||
|
// }
|
||
|
// else if (keyName == 'yinshitouziArray') {
|
||
|
// let ysArray = User.getYinShiTouZiArray()
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// Object.keys(ysArray).forEach((key) => {
|
||
|
// ysArray[key] = Number(array1[key])
|
||
|
// });
|
||
|
|
||
|
// User.setYinShiTouZiArray(ysArray)
|
||
|
// }
|
||
|
|
||
|
|
||
|
|
||
|
// else if (keyName == 'xpz_curJieSuoShengXiaoId') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.curJieSuoShengXiaoId = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_finishLiWuNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.finishLiWuNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_isOpenLiWuProgress') {
|
||
|
// if (keyValue == 'false') {
|
||
|
// xpz_SaveGameData.isOpenLiWuProgress = false
|
||
|
// } else if (keyValue == 'true') {
|
||
|
// xpz_SaveGameData.isOpenLiWuProgress = true
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_ads9LeftTimer') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.ads9LeftTimer = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_ads10LeftTimer') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.ads10LeftTimer = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_ads11LeftTimer') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.ads11LeftTimer = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_autoBuPanTimeNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.autoBuPanTimeNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_curGuanQiaFinishNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.curGuanQiaFinishNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_curGuanQiaNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.curGuanQiaNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_curTargetMinNumber') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.curTargetMinNumber = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_curTargetNumber') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.curTargetNumber = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_gameTime') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.gameTime = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_isAutoBuPanTimer') {
|
||
|
// if (keyValue == 'false') {
|
||
|
// xpz_SaveGameData.isAutoBuPanTimer = false
|
||
|
// } else if (keyValue == 'true') {
|
||
|
// xpz_SaveGameData.isAutoBuPanTimer = true
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_jieSuoColorNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.jieSuoColorNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_jieSuoTuJianId') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.jieSuoTuJianId = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_leftPanZiNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.leftPanZiNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_unlock_ads9') {
|
||
|
// if (keyValue == 'false') {
|
||
|
// xpz_SaveGameData.unlock_ads9 = false
|
||
|
// } else if (keyValue == 'true') {
|
||
|
// xpz_SaveGameData.unlock_ads9 = true
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_unlock_ads10') {
|
||
|
// if (keyValue == 'false') {
|
||
|
// xpz_SaveGameData.unlock_ads10 = false
|
||
|
// } else if (keyValue == 'true') {
|
||
|
// xpz_SaveGameData.unlock_ads10 = true
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_unlock_ads11') {
|
||
|
// if (keyValue == 'false') {
|
||
|
// xpz_SaveGameData.unlock_ads11 = false
|
||
|
// } else if (keyValue == 'true') {
|
||
|
// xpz_SaveGameData.unlock_ads11 = true
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_unlock_ads13') {
|
||
|
// if (keyValue == 'false') {
|
||
|
// xpz_SaveGameData.unlock_ads13 = false
|
||
|
// } else if (keyValue == 'true') {
|
||
|
// xpz_SaveGameData.unlock_ads13 = true
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_unlock_adsXiWanChi2') {
|
||
|
// if (keyValue == 'false') {
|
||
|
// xpz_SaveGameData.unlock_adsXiWanChi2 = false
|
||
|
// } else if (keyValue == 'true') {
|
||
|
// xpz_SaveGameData.unlock_adsXiWanChi2 = true
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_unlock_cell') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.unlock_cell = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_yiXiaoChuNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.yiXiaoChuNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_yiXiaoChuAllNum') {
|
||
|
// if (Number(keyValue)) {
|
||
|
// xpz_SaveGameData.yiXiaoChuAllNum = Number(keyValue)
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_curXiWanChiLevel') {
|
||
|
// let array1 = keyValue.split(",");
|
||
|
// for (let i = 0; i < xpz_SaveGameData.curXiWanChiLevel.length; i++) {
|
||
|
// if (Number(array1[i])) {
|
||
|
// xpz_SaveGameData.curXiWanChiLevel[i] = Number(array1[i])
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
// } else if (keyName == 'xpz_xiaoChuColorNumTab') {
|
||
|
// let array2 = keyValue.split(",");
|
||
|
// for (let i = 0; i < xpz_SaveGameData.xiaoChuColorNumTab.length; i++) {
|
||
|
// if (Number(array2[i])) {
|
||
|
// xpz_SaveGameData.xiaoChuColorNumTab[i] = Number(array2[i])
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
|
||
|
// } else if (keyName == 'xpz_cell_data') {
|
||
|
// let arrayCell = keyValue.split("?");
|
||
|
// console.log('arrayCell', arrayCell)
|
||
|
|
||
|
// for (let i = 0; i < xpz_SaveGameData.cell_data.length; i++) {
|
||
|
// if (i == 12) {
|
||
|
// if (arrayCell[i].length > 0) {
|
||
|
// xpz_SaveGameData.unlock_ads11 = true
|
||
|
// }
|
||
|
// }
|
||
|
// if (arrayCell[i].length > 0) {
|
||
|
// let ceshiArray = arrayCell[i].split(",");
|
||
|
// console.log('ceshiArray', ceshiArray)
|
||
|
|
||
|
// for (let jk = 0; jk < ceshiArray.length; jk++) {
|
||
|
// if (Number(ceshiArray[jk])) {
|
||
|
// ceshiArray[jk] = Number(ceshiArray[jk])
|
||
|
// }
|
||
|
|
||
|
// }
|
||
|
|
||
|
// xpz_SaveGameData.cell_data[i] = ceshiArray
|
||
|
// } else {
|
||
|
// xpz_SaveGameData.cell_data[i] = []
|
||
|
// }
|
||
|
// }
|
||
|
// }
|
||
|
|
||
|
// else if (keyName == 'kaiGongSiLevelArray') {
|
||
|
// let kgsLevelArray = User.getkaiGongSiLevelArray()
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// Object.keys(kgsLevelArray).forEach((key) => {
|
||
|
// kgsLevelArray[key] = Number(array1[key])
|
||
|
// });
|
||
|
|
||
|
// User.setkaiGongSiLevelArray(kgsLevelArray)
|
||
|
// } else if (keyName == 'kaiGongSiLockArray') {
|
||
|
// let kgsLockArray = User.getKaiGongSiLockArray()
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// Object.keys(kgsLockArray).forEach((key) => {
|
||
|
// kgsLockArray[key] = Number(array1[key])
|
||
|
// });
|
||
|
|
||
|
// User.setKaiGongSiLockArray(kgsLockArray)
|
||
|
// } else if (keyName == 'youTingInfo') {
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// let tempArr = []
|
||
|
// let isHaveData = false
|
||
|
// for (let i = 0; i < array1.length; i++) {
|
||
|
// if (array1[i] != '') {
|
||
|
// isHaveData = true
|
||
|
// let array2 = array1[i].split("&")
|
||
|
// let tingKaoId = Number(array2[0] || 0)
|
||
|
// let isBuy = false
|
||
|
// if (array2[1] == 'true') {
|
||
|
// isBuy = true
|
||
|
// }
|
||
|
// let chuHaiTime = Number(array2[2] || 0)
|
||
|
|
||
|
// let tempTab = { tingKaoId: tingKaoId, isBuy: isBuy, chuHaiTime: chuHaiTime }
|
||
|
// tempArr.push(tempTab)
|
||
|
// }
|
||
|
// }
|
||
|
// if (isHaveData) {
|
||
|
// User.setAllYouTingInfo(tempArr)
|
||
|
// }
|
||
|
// } else if (keyName == 'qunYingJiuDianLockArray') {
|
||
|
// let rArray = User.getQunYingJiuDianLockArray(4)
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// Object.keys(rArray).forEach((key) => {
|
||
|
// if (array1[key] == 'true') {
|
||
|
// rArray[key] = true
|
||
|
// } else {
|
||
|
// rArray[key] = false
|
||
|
// }
|
||
|
// });
|
||
|
|
||
|
// User.setAllQunYingJiuDianLockArray(rArray)
|
||
|
// }
|
||
|
// else if (keyName == 'yiMaJiangLockArray') {
|
||
|
// let rArray = User.getYiMaJiangLockArray(3)
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// Object.keys(rArray).forEach((key) => {
|
||
|
// if (array1[key] == 'true') {
|
||
|
// rArray[key] = true
|
||
|
// } else {
|
||
|
// rArray[key] = false
|
||
|
// }
|
||
|
// });
|
||
|
|
||
|
// User.setAllYiMaJiangLockArray(rArray)
|
||
|
// }
|
||
|
else if (keyName == 'finishTaskId') {
|
||
|
let array1 = keyValue.split("?");
|
||
|
let finishTaskId = User.getCurTaskId()
|
||
|
finishTaskId[0] = Number(array1[0] || 0)
|
||
|
finishTaskId[1] = Number(array1[1] || 0)
|
||
|
User.setCurTaskId(finishTaskId)
|
||
|
} else if (keyName == 'qieLevel') {
|
||
|
if (Number(keyValue)) {
|
||
|
User.setQieLevel(Number(keyValue))
|
||
|
}
|
||
|
}else if (keyName == 'treeLevel') {
|
||
|
if (Number(keyValue)) {
|
||
|
User.setTreeLevel(Number(keyValue))
|
||
|
}
|
||
|
}else if (keyName == 'roomBtnIndex') {
|
||
|
if (Number(keyValue)) {
|
||
|
User.setRoomBtnIndex(Number(keyValue))
|
||
|
}
|
||
|
}
|
||
|
else if (keyName == 'baDaCaiXiUnlockStatus') {
|
||
|
let array1 = keyValue.split("?");
|
||
|
let baDaCaiXi = User.getBaDaCaiXiUnlockStatus()
|
||
|
//HeTong:false?false?false?false;
|
||
|
if (array1[0] == 'false') {
|
||
|
baDaCaiXi.YaoShan = false
|
||
|
} else if (array1[0] == 'true') {
|
||
|
baDaCaiXi.YaoShan = true
|
||
|
}
|
||
|
if (array1[1] == 'false') {
|
||
|
baDaCaiXi.ShiPingChang = false
|
||
|
} else if (array1[1] == 'true') {
|
||
|
baDaCaiXi.ShiPingChang = true
|
||
|
}
|
||
|
if (array1[2] == 'false') {
|
||
|
baDaCaiXi.YiYao = false
|
||
|
} else if (array1[2] == 'true') {
|
||
|
baDaCaiXi.YiYao = true
|
||
|
}
|
||
|
if (array1[3] == 'false') {
|
||
|
baDaCaiXi.WenYu = false
|
||
|
} else if (array1[3] == 'true') {
|
||
|
baDaCaiXi.WenYu = true
|
||
|
}
|
||
|
if (array1[4] == 'false') {
|
||
|
baDaCaiXi.DianZi = false
|
||
|
} else if (array1[4] == 'true') {
|
||
|
baDaCaiXi.DianZi = true
|
||
|
}
|
||
|
if (array1[5] == 'false') {
|
||
|
baDaCaiXi.WangLuo = false
|
||
|
} else if (array1[5] == 'true') {
|
||
|
baDaCaiXi.WangLuo = true
|
||
|
}
|
||
|
if (array1[6] == 'false') {
|
||
|
baDaCaiXi.JingRong = false
|
||
|
} else if (array1[6] == 'true') {
|
||
|
baDaCaiXi.JingRong = true
|
||
|
}
|
||
|
if (array1[7] == 'false') {
|
||
|
baDaCaiXi.WeiLai = false
|
||
|
} else if (array1[7] == 'true') {
|
||
|
baDaCaiXi.WeiLai = true
|
||
|
}
|
||
|
User.setBaDaCaiXiUnlockStatus(baDaCaiXi)
|
||
|
}
|
||
|
else if (keyName == 'baDaCaiXiLevelInfo') {
|
||
|
let array1 = keyValue.split("?");
|
||
|
let tab = []
|
||
|
for(let i = 0; i <array1.length;i++){
|
||
|
tab.push({level:Number(array1[i])})
|
||
|
}
|
||
|
User.setBaDaCaiXiInfo(tab)
|
||
|
}
|
||
|
// else if (keyName == 'finishZhiNengTaskId') {
|
||
|
// let rArray = User.getCurZhiNengTaskId()
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// Object.keys(rArray).forEach((key) => {
|
||
|
// rArray[key] = Number(array1[0] || 0)
|
||
|
// });
|
||
|
|
||
|
// User.setZhiNengTaskId(rArray)
|
||
|
// } else if (keyName == 'chatImgIndex') {
|
||
|
// User.setChatImgIndex(Number(keyValue))
|
||
|
|
||
|
// } else if (keyName == 'caiDanStatusTab') {
|
||
|
// let cdArray = User.getAllCaiDanStatus()
|
||
|
// let array1 = keyValue.split("?");
|
||
|
// Object.keys(cdArray).forEach((key) => {
|
||
|
// cdArray[key] = Number(array1[key])
|
||
|
// });
|
||
|
|
||
|
// User.setAllCaiDanStatus(cdArray)
|
||
|
// }
|
||
|
}
|
||
|
// User.setSaveGameProgressData_XPZ(xpz_SaveGameData)
|
||
|
GameMgr.getInstance_custom().saveGameData_custom();
|
||
|
}
|
||
|
//获取还剩多少任务解锁
|
||
|
public static getDisTaskNumByGameType(gameType) {
|
||
|
let gameTaskIndex = 0
|
||
|
let curTaskIndex = User.getCurTaskIndex()
|
||
|
if (gameType == GameType.YiMaJiangXuanGuan) {
|
||
|
gameTaskIndex = 22
|
||
|
} else if (gameType == GameType.KuaiDiZhan) {
|
||
|
gameTaskIndex = 5
|
||
|
} else if (gameType == GameType.ShouHuoji) {
|
||
|
gameTaskIndex = 2
|
||
|
} else if (gameType == GameType.Paimaihang) {
|
||
|
gameTaskIndex = 26
|
||
|
}
|
||
|
return gameTaskIndex - curTaskIndex
|
||
|
}
|
||
|
public static getXiaomaibuAllBuy() {
|
||
|
let list = User.getShouHuoJiiList()
|
||
|
let isAllBuy = true
|
||
|
for (let i = 0; i < list.length; i++) {
|
||
|
if (list[i].saveNum > 0) {
|
||
|
isAllBuy = false
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
return isAllBuy
|
||
|
|
||
|
}
|
||
|
//美食城和酒馆收益由IQ值与baseIQ差值决定
|
||
|
public static getShouYiTimes(typeStr) {
|
||
|
// let baseIQ = User.getJieSuoBaseIQ(typeStr)
|
||
|
// if (!baseIQ) {
|
||
|
// return { times: 1, nextIQ: 0, nextTimes: 1 }
|
||
|
// }
|
||
|
// let times = 1
|
||
|
// let curIQ = User.getUserIQ()
|
||
|
// if (curIQ == 100) {
|
||
|
// return { times: 10, nextIQ: 0, nextTimes: 10 }
|
||
|
// }
|
||
|
// let n = curIQ - baseIQ
|
||
|
// let period = 0
|
||
|
// let nextTimes = 1
|
||
|
// if (n < 1) {
|
||
|
// times = 1
|
||
|
// nextTimes = 2
|
||
|
// period = 1
|
||
|
// } else if (n < 3) {
|
||
|
// times = 2
|
||
|
// nextTimes = 4
|
||
|
// period = 3
|
||
|
// } else if (n < 6) {
|
||
|
// times = 4
|
||
|
// nextTimes = 5
|
||
|
// period = 6
|
||
|
// } else if (n < 10) {
|
||
|
// times = 5
|
||
|
// nextTimes = 6
|
||
|
// period = 10
|
||
|
// } else if (n < 15) {
|
||
|
// times = 6
|
||
|
// nextTimes = 7
|
||
|
// period = 15
|
||
|
// } else if (n < 21) {
|
||
|
// times = 7
|
||
|
// nextTimes = 8
|
||
|
// period = 21
|
||
|
// } else if (n < 28) {
|
||
|
// times = 8
|
||
|
// nextTimes = 9
|
||
|
// period = 28
|
||
|
// } else if (n < 36) {
|
||
|
// times = 9
|
||
|
// nextTimes = 10
|
||
|
// period = 36
|
||
|
// } else {
|
||
|
// times = 10
|
||
|
// nextTimes = 10
|
||
|
// }
|
||
|
// if (period == 0) {
|
||
|
// return { times: times, nextIQ: 0, nextTimes: nextTimes }
|
||
|
// } else {
|
||
|
// return { times: times, nextIQ: baseIQ + period, nextTimes: nextTimes }
|
||
|
// }
|
||
|
|
||
|
}
|
||
|
//外星称号
|
||
|
|
||
|
public static updateChenghaoData() {
|
||
|
let ChenghaoData = User.getChenghaoData()
|
||
|
if (ChenghaoData.length == chenghaoConfig.length) {
|
||
|
return
|
||
|
}
|
||
|
|
||
|
for (let i = 0; i < chenghaoConfig.length; i++) {
|
||
|
let config = chenghaoConfig[i]
|
||
|
let conditionFunction = config[config.conditionFunction]
|
||
|
if (conditionFunction) {
|
||
|
let isFinish = conditionFunction()
|
||
|
console.log(isFinish, 'isFinish++++++=')
|
||
|
if (isFinish) {
|
||
|
let chenghaoId = config.chenghaoId
|
||
|
if (ChenghaoData.indexOf(chenghaoId) < 0) {
|
||
|
ChenghaoData.push(chenghaoId)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
User.setChenghaoData(ChenghaoData)
|
||
|
}
|
||
|
|
||
|
public static getUserChenghaoData() {
|
||
|
let ChenghaoData = User.getChenghaoData()
|
||
|
let chenghaoId = ChenghaoData[ChenghaoData.length - 1]
|
||
|
return chenghaoConfig[chenghaoId]
|
||
|
}
|
||
|
|
||
|
|
||
|
public static setBuyBuilding(GameId, GameName) {
|
||
|
let builds = User.getBuyBuildings()
|
||
|
let data = { buildId: GameId, buildName: GameName }
|
||
|
builds.push(data)
|
||
|
|
||
|
User.setBuyBuildings(builds)
|
||
|
}
|
||
|
}
|