Commit 5c1b97ff authored by Edwise's avatar Edwise 🍷

1234

parent 13b1c09d
...@@ -46964,6 +46964,8 @@ var MainScene = (function (_super) { ...@@ -46964,6 +46964,8 @@ var MainScene = (function (_super) {
var that = this; var that = this;
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.recallInfo, {}, function (s, r) { TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.recallInfo, {}, function (s, r) {
if (s) { if (s) {
if (that.recallTimer)
clearTimeout(that.recallTimer);
that.recallTimer = setTimeout(function () { that.recallTimer = setTimeout(function () {
that.recallCat(); that.recallCat();
}, r.data.backTime - r.data.serverTime); }, r.data.backTime - r.data.serverTime);
...@@ -47186,6 +47188,9 @@ var MainScene = (function (_super) { ...@@ -47186,6 +47188,9 @@ var MainScene = (function (_super) {
if (s) { if (s) {
Ins_1.Ins.userInfo = r.data; Ins_1.Ins.userInfo = r.data;
if (that.isShow) { if (that.isShow) {
if (Ins_1.Ins.catIsOut) {
that.initRecallCatTimer();
}
that.isShow = false; that.isShow = false;
that.energyUp1(); that.energyUp1();
} }
This diff is collapsed.
...@@ -46966,6 +46966,8 @@ var MainScene = (function (_super) { ...@@ -46966,6 +46966,8 @@ var MainScene = (function (_super) {
var that = this; var that = this;
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.recallInfo, {}, function (s, r) { TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.recallInfo, {}, function (s, r) {
if (s) { if (s) {
if (that.recallTimer)
clearTimeout(that.recallTimer);
that.recallTimer = setTimeout(function () { that.recallTimer = setTimeout(function () {
that.recallCat(); that.recallCat();
}, r.data.backTime - r.data.serverTime); }, r.data.backTime - r.data.serverTime);
...@@ -47188,6 +47190,9 @@ var MainScene = (function (_super) { ...@@ -47188,6 +47190,9 @@ var MainScene = (function (_super) {
if (s) { if (s) {
Ins_1.Ins.userInfo = r.data; Ins_1.Ins.userInfo = r.data;
if (that.isShow) { if (that.isShow) {
if (Ins_1.Ins.catIsOut) {
that.initRecallCatTimer();
}
that.isShow = false; that.isShow = false;
that.energyUp1(); that.energyUp1();
} }
...@@ -127,6 +127,7 @@ export class MainScene extends Scene { ...@@ -127,6 +127,7 @@ export class MainScene extends Scene {
var that = this; var that = this;
sendTbNet(TbNetName.recallInfo,{},(s,r)=>{ sendTbNet(TbNetName.recallInfo,{},(s,r)=>{
if(s){ if(s){
if(that.recallTimer) clearTimeout(that.recallTimer)
that.recallTimer = setTimeout(()=>{ that.recallTimer = setTimeout(()=>{
that.recallCat(); that.recallCat();
},r.data.backTime-r.data.serverTime) },r.data.backTime-r.data.serverTime)
...@@ -375,6 +376,9 @@ export class MainScene extends Scene { ...@@ -375,6 +376,9 @@ export class MainScene extends Scene {
if (s) { if (s) {
Ins.userInfo = r.data; Ins.userInfo = r.data;
if(that.isShow){ if(that.isShow){
if(Ins.catIsOut){
that.initRecallCatTimer();
}
that.isShow = false; that.isShow = false;
that.energyUp1(); that.energyUp1();
} }
......
...@@ -46966,6 +46966,8 @@ var MainScene = (function (_super) { ...@@ -46966,6 +46966,8 @@ var MainScene = (function (_super) {
var that = this; var that = this;
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.recallInfo, {}, function (s, r) { TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.recallInfo, {}, function (s, r) {
if (s) { if (s) {
if (that.recallTimer)
clearTimeout(that.recallTimer);
that.recallTimer = setTimeout(function () { that.recallTimer = setTimeout(function () {
that.recallCat(); that.recallCat();
}, r.data.backTime - r.data.serverTime); }, r.data.backTime - r.data.serverTime);
...@@ -47188,6 +47190,9 @@ var MainScene = (function (_super) { ...@@ -47188,6 +47190,9 @@ var MainScene = (function (_super) {
if (s) { if (s) {
Ins_1.Ins.userInfo = r.data; Ins_1.Ins.userInfo = r.data;
if (that.isShow) { if (that.isShow) {
if (Ins_1.Ins.catIsOut) {
that.initRecallCatTimer();
}
that.isShow = false; that.isShow = false;
that.energyUp1(); that.energyUp1();
} }
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