|
@@ -289,10 +289,10 @@
|
|
|
let dateTtime = Number(shippingNoteInfos.interval + 1000)
|
|
|
console.log("开始定时", dateTtime)
|
|
|
that.send()
|
|
|
- that.timer = setInterval(() => {
|
|
|
- console.log("定时")
|
|
|
- that.send()
|
|
|
- }, dateTtime);
|
|
|
+ // that.timer = setTimeout(() => {
|
|
|
+ // console.log("定时")
|
|
|
+ // that.send()
|
|
|
+ // }, dateTtime);
|
|
|
}
|
|
|
} else if (res.type == "onFailure") {
|
|
|
//失败
|
|
@@ -300,7 +300,7 @@
|
|
|
console.log(res)
|
|
|
var errorCode = res.data.errorCode; //错误码
|
|
|
var errorMsg = res.data.errorMsg; //错误描述
|
|
|
- that.timer = setInterval(() => {
|
|
|
+ that.timer = setTimeout(() => {
|
|
|
console.log("定时")
|
|
|
that.send()
|
|
|
}, 915204);
|
|
@@ -319,13 +319,13 @@
|
|
|
var shippingNoteInfos = res.data[0]; //运单信息列表
|
|
|
let dateTtime = Number(shippingNoteInfos.interval + 1000)
|
|
|
console.log("开始定时", dateTtime)
|
|
|
- that.timer = setInterval(() => {
|
|
|
+ that.timer = setTimeout(() => {
|
|
|
that.send()
|
|
|
}, dateTtime);
|
|
|
} else if (res.type == "onFailure") {
|
|
|
var errorCode = res.data.errorCode; //错误码
|
|
|
var errorMsg = res.data.errorMsg; //错误描述
|
|
|
- that.timer = setInterval(() => {
|
|
|
+ that.timer = setTimeout(() => {
|
|
|
console.log("定时")
|
|
|
that.send()
|
|
|
}, 915204); //15分钟
|