Commit 863ba395 authored by wangzhujun's avatar wangzhujun

1232

parent 311b914f
...@@ -175,7 +175,12 @@ class Main extends MainBase { ...@@ -175,7 +175,12 @@ class Main extends MainBase {
// if (GameConst.getQueryString("InviteSource")) { // if (GameConst.getQueryString("InviteSource")) {
yzwNet.homeBaseInfo((s) => { yzwNet.homeBaseInfo((s) => {
if (!s) { if (!s) {
if((DataManager.ins.getData("homeBaseInfo").message){
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message) ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
...@@ -225,7 +230,12 @@ class Main extends MainBase { ...@@ -225,7 +230,12 @@ class Main extends MainBase {
// } else { // } else {
yzwNet.homeBaseInfo((s) => { yzwNet.homeBaseInfo((s) => {
if (!s) { if (!s) {
if(DataManager.ins.getData("homeBaseInfo") && DataManager.ins.getData("homeBaseInfo").message){
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message) ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
......
...@@ -74,7 +74,12 @@ export default class RankPanel extends Panel{ ...@@ -74,7 +74,12 @@ export default class RankPanel extends Panel{
Waiting.instance.show(); Waiting.instance.show();
yzwNet.homeBaseInfo((s)=>{ yzwNet.homeBaseInfo((s)=>{
if(!s){ if(!s){
if(DataManager.ins.getData("homeBaseInfo") && DataManager.ins.getData("homeBaseInfo").message){
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message) ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
......
...@@ -260,7 +260,12 @@ export default class StartScene extends Scene { ...@@ -260,7 +260,12 @@ export default class StartScene extends Scene {
NetManager.ins.clickLog(this.chuandiExposure); NetManager.ins.clickLog(this.chuandiExposure);
yzwNet.doStart((s)=>{ yzwNet.doStart((s)=>{
if(!s){ if(!s){
if(DataManager.ins.getData("doStart") && DataManager.ins.getData("doStart").message){
ToastCtrl.instance.show(DataManager.ins.getData("doStart").message) ToastCtrl.instance.show(DataManager.ins.getData("doStart").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
...@@ -268,7 +273,12 @@ export default class StartScene extends Scene { ...@@ -268,7 +273,12 @@ export default class StartScene extends Scene {
yzwNet.unlockArea((ss)=>{ yzwNet.unlockArea((ss)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!ss){ if(!ss){
if(DataManager.ins.getData("unlockArea").message && DataManager.ins.getData("unlockArea").message){
ToastCtrl.instance.show(DataManager.ins.getData("unlockArea").message) ToastCtrl.instance.show(DataManager.ins.getData("unlockArea").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return return
} }
...@@ -291,7 +301,12 @@ export default class StartScene extends Scene { ...@@ -291,7 +301,12 @@ export default class StartScene extends Scene {
yzwNet.rankInfo((s)=>{ yzwNet.rankInfo((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("rankInfo") && DataManager.ins.getData("rankInfo").message){
ToastCtrl.instance.show(DataManager.ins.getData("rankInfo").message) ToastCtrl.instance.show(DataManager.ins.getData("rankInfo").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
...@@ -311,14 +326,23 @@ export default class StartScene extends Scene { ...@@ -311,14 +326,23 @@ export default class StartScene extends Scene {
NetManager.ins.clickLog(this.chuandiExposure); NetManager.ins.clickLog(this.chuandiExposure);
yzwNet.doStart((s)=>{ yzwNet.doStart((s)=>{
if(!s){ if(!s){
if(DataManager.ins.getData("doStart") && DataManager.ins.getData("doStart").message){
ToastCtrl.instance.show(DataManager.ins.getData("doStart").message) ToastCtrl.instance.show(DataManager.ins.getData("doStart").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
yzwNet.unlockArea((ss)=>{ yzwNet.unlockArea((ss)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!ss){ if(!ss){
if(DataManager.ins.getData("unlockArea") && DataManager.ins.getData("unlockArea").message){
ToastCtrl.instance.show(DataManager.ins.getData("unlockArea").message) ToastCtrl.instance.show(DataManager.ins.getData("unlockArea").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return return
} }
...@@ -339,7 +363,12 @@ export default class StartScene extends Scene { ...@@ -339,7 +363,12 @@ export default class StartScene extends Scene {
yzwNet.unlockArea((s)=>{ yzwNet.unlockArea((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("unlockArea") && DataManager.ins.getData("unlockArea").message){
ToastCtrl.instance.show(DataManager.ins.getData("unlockArea").message) ToastCtrl.instance.show(DataManager.ins.getData("unlockArea").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return return
} }
......
...@@ -210,7 +210,12 @@ export default class PKScene extends Scene{ ...@@ -210,7 +210,12 @@ export default class PKScene extends Scene{
yzwNet.genInvite((s)=>{ yzwNet.genInvite((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("genInvite") && DataManager.ins.getData("genInvite").message){
ToastCtrl.instance.show(DataManager.ins.getData("genInvite").message) ToastCtrl.instance.show(DataManager.ins.getData("genInvite").message)
}else{
ToastCtrl.instance.show("网络异常请重试~")
}
// ToastCtrl.instance.show("网络异常请重试~") // ToastCtrl.instance.show("网络异常请重试~")
return return
} }
...@@ -224,7 +229,12 @@ export default class PKScene extends Scene{ ...@@ -224,7 +229,12 @@ export default class PKScene extends Scene{
yzwNet.genInvite((s)=>{ yzwNet.genInvite((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("genInvite") && DataManager.ins.getData("genInvite").message){
ToastCtrl.instance.show(DataManager.ins.getData("genInvite").message) ToastCtrl.instance.show(DataManager.ins.getData("genInvite").message)
}else{
ToastCtrl.instance.show("网络异常请重试~")
}
// ToastCtrl.instance.show("网络异常请重试~") // ToastCtrl.instance.show("网络异常请重试~")
return return
} }
......
...@@ -114,7 +114,12 @@ export default class PKScorePanel extends Panel{ ...@@ -114,7 +114,12 @@ export default class PKScorePanel extends Panel{
yzwNet.getPkBaseInfo((s)=>{ yzwNet.getPkBaseInfo((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("getPkBaseInfo") && DataManager.ins.getData("getPkBaseInfo").message){
ToastCtrl.instance.show(DataManager.ins.getData("getPkBaseInfo").message) ToastCtrl.instance.show(DataManager.ins.getData("getPkBaseInfo").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return return
} }
......
...@@ -48,7 +48,12 @@ export default class PlacePanel extends Panel{ ...@@ -48,7 +48,12 @@ export default class PlacePanel extends Panel{
yzwNet.homeBaseInfo((s)=>{ yzwNet.homeBaseInfo((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("homeBaseInfo") && DataManager.ins.getData("homeBaseInfo").message){
ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message) ToastCtrl.instance.show(DataManager.ins.getData("homeBaseInfo").message)
}else{
ToastCtrl.instance.show("网络异常请重试~");
}
// ToastCtrl.instance.show("网络异常请重试~"); // ToastCtrl.instance.show("网络异常请重试~");
return; return;
} }
......
...@@ -62,7 +62,12 @@ export default class RecordMapScene extends Scene{ ...@@ -62,7 +62,12 @@ export default class RecordMapScene extends Scene{
yzwNet.shareFootprint((s)=>{ yzwNet.shareFootprint((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("shareFootprint") && DataManager.ins.getData("shareFootprint").message){
ToastCtrl.instance.show(DataManager.ins.getData("shareFootprint").message) ToastCtrl.instance.show(DataManager.ins.getData("shareFootprint").message)
}else{
ToastCtrl.instance.show("网络异常请重试~")
}
// ToastCtrl.instance.show("网络异常请重新分享~") // ToastCtrl.instance.show("网络异常请重新分享~")
return return
} }
......
...@@ -51,7 +51,12 @@ export default class RecordScene extends Scene{ ...@@ -51,7 +51,12 @@ export default class RecordScene extends Scene{
yzwNet.shareFootprintList((s)=>{ yzwNet.shareFootprintList((s)=>{
Waiting.instance.hide(); Waiting.instance.hide();
if(!s){ if(!s){
if(DataManager.ins.getData("shareFootprintList") && DataManager.ins.getData("shareFootprintList").message){
ToastCtrl.instance.show(DataManager.ins.getData("shareFootprintList").message) ToastCtrl.instance.show(DataManager.ins.getData("shareFootprintList").message)
}else{
ToastCtrl.instance.show("网路异常请重试~");
}
// ToastCtrl.instance.show("网路异常请重试~"); // ToastCtrl.instance.show("网路异常请重试~");
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment