q-koa 13.8.2 → 13.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,7 +61,7 @@ module.exports = class Singleton {
|
|
|
61
61
|
.then((res) => res.data)
|
|
62
62
|
if (hotsearchResult.data.error_code) {
|
|
63
63
|
if (hotsearchResult.data.error_code === 2190008) {
|
|
64
|
-
cache.
|
|
64
|
+
cache.clear()
|
|
65
65
|
return await this.getHotSearch()
|
|
66
66
|
}
|
|
67
67
|
throw new Error(hotsearchResult.data.description)
|
|
@@ -84,7 +84,7 @@ module.exports = class Singleton {
|
|
|
84
84
|
.then((res) => res.data)
|
|
85
85
|
if (hotSearchTrendingResult.data.error_code) {
|
|
86
86
|
if (hotSearchTrendingResult.data.error_code === 2190008) {
|
|
87
|
-
cache.
|
|
87
|
+
cache.clear()
|
|
88
88
|
return await this.getHotSearchTrending(offset, limit)
|
|
89
89
|
}
|
|
90
90
|
throw new Error(hotSearchTrendingResult.data.description)
|
|
@@ -106,7 +106,7 @@ module.exports = class Singleton {
|
|
|
106
106
|
|
|
107
107
|
if (hotVideoResult.data.error_code) {
|
|
108
108
|
if (hotVideoResult.data.error_code === 2190008) {
|
|
109
|
-
cache.
|
|
109
|
+
cache.clear()
|
|
110
110
|
return await this.getHotVideo(word, day)
|
|
111
111
|
}
|
|
112
112
|
throw new Error(hotVideoResult.data.description)
|
|
@@ -127,7 +127,7 @@ module.exports = class Singleton {
|
|
|
127
127
|
|
|
128
128
|
if (result.data.error_code) {
|
|
129
129
|
if (result.data.error_code === 2190008) {
|
|
130
|
-
cache.
|
|
130
|
+
cache.clear()
|
|
131
131
|
return await this.getStarHot(hot_list_type)
|
|
132
132
|
}
|
|
133
133
|
throw new Error(result.data.description)
|
|
@@ -192,7 +192,7 @@ module.exports = class Singleton {
|
|
|
192
192
|
const result = await axios.post(url).then((res) => res.data)
|
|
193
193
|
if (result.errcode) {
|
|
194
194
|
if (result.errcode === 40001) {
|
|
195
|
-
cache.
|
|
195
|
+
cache.clear()
|
|
196
196
|
return await this.getExpress()
|
|
197
197
|
}
|
|
198
198
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -232,7 +232,7 @@ module.exports = class Singleton {
|
|
|
232
232
|
const result = await axios.post(url, formatOptions).then((res) => res.data)
|
|
233
233
|
if (result.errcode) {
|
|
234
234
|
if (result.errcode === 40001) {
|
|
235
|
-
cache.
|
|
235
|
+
cache.clear()
|
|
236
236
|
return await this.addOrder({
|
|
237
237
|
add_source,
|
|
238
238
|
order_id,
|
|
@@ -264,7 +264,7 @@ module.exports = class Singleton {
|
|
|
264
264
|
const result = await axios.post(url, formatOptions).then((res) => res.data)
|
|
265
265
|
if (result.errcode) {
|
|
266
266
|
if (result.errcode === 40001) {
|
|
267
|
-
cache.
|
|
267
|
+
cache.clear()
|
|
268
268
|
return await this.addSubanchor({
|
|
269
269
|
roomId,
|
|
270
270
|
username,
|
|
@@ -286,7 +286,7 @@ module.exports = class Singleton {
|
|
|
286
286
|
const result = await axios.post(url, formatOptions).then((res) => res.data)
|
|
287
287
|
if (result.errcode) {
|
|
288
288
|
if (result.errcode === 40001) {
|
|
289
|
-
cache.
|
|
289
|
+
cache.clear()
|
|
290
290
|
return await this.addRole({
|
|
291
291
|
username,
|
|
292
292
|
role,
|
|
@@ -336,7 +336,7 @@ module.exports = class Singleton {
|
|
|
336
336
|
const result = await axios.post(url, formatOptions).then((res) => res.data)
|
|
337
337
|
if (result.errcode) {
|
|
338
338
|
if (result.errcode === 40001) {
|
|
339
|
-
cache.
|
|
339
|
+
cache.clear()
|
|
340
340
|
return await this.createLive({
|
|
341
341
|
name,
|
|
342
342
|
createrWechat,
|
|
@@ -366,7 +366,7 @@ module.exports = class Singleton {
|
|
|
366
366
|
const result = await axios.post(url, formatOptions).then((res) => res.data)
|
|
367
367
|
if (result.errcode) {
|
|
368
368
|
if (result.errcode === 40001) {
|
|
369
|
-
cache.
|
|
369
|
+
cache.clear()
|
|
370
370
|
return await this.getLive(start, limit)
|
|
371
371
|
}
|
|
372
372
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -380,7 +380,7 @@ module.exports = class Singleton {
|
|
|
380
380
|
const result = await axios.post(url, { code }).then((res) => res.data)
|
|
381
381
|
if (result.errcode) {
|
|
382
382
|
if (result.errcode === 40001) {
|
|
383
|
-
cache.
|
|
383
|
+
cache.clear()
|
|
384
384
|
return await this.getPhoneNumber(code)
|
|
385
385
|
}
|
|
386
386
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -406,7 +406,7 @@ module.exports = class Singleton {
|
|
|
406
406
|
|
|
407
407
|
if (result.errcode) {
|
|
408
408
|
if (result.errcode === 40001) {
|
|
409
|
-
cache.
|
|
409
|
+
cache.clear()
|
|
410
410
|
return await this.createUrlLink(options)
|
|
411
411
|
}
|
|
412
412
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -426,7 +426,7 @@ module.exports = class Singleton {
|
|
|
426
426
|
|
|
427
427
|
if (result.errcode) {
|
|
428
428
|
if (result.errcode === 40001) {
|
|
429
|
-
cache.
|
|
429
|
+
cache.clear()
|
|
430
430
|
return await this.queryUrlLink(url_link)
|
|
431
431
|
}
|
|
432
432
|
if (result.errcode === 85403) {
|
|
@@ -459,7 +459,7 @@ module.exports = class Singleton {
|
|
|
459
459
|
|
|
460
460
|
if (result.errcode) {
|
|
461
461
|
if (result.errcode === 40001) {
|
|
462
|
-
cache.
|
|
462
|
+
cache.clear()
|
|
463
463
|
return await this.createShortLink(options)
|
|
464
464
|
}
|
|
465
465
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -487,7 +487,7 @@ module.exports = class Singleton {
|
|
|
487
487
|
|
|
488
488
|
if (result.errcode) {
|
|
489
489
|
if (result.errcode === 40001) {
|
|
490
|
-
cache.
|
|
490
|
+
cache.clear()
|
|
491
491
|
return await this.createUrlscheme(options)
|
|
492
492
|
}
|
|
493
493
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -521,7 +521,7 @@ module.exports = class Singleton {
|
|
|
521
521
|
})
|
|
522
522
|
if (bufferResult.errcode) {
|
|
523
523
|
if (bufferResult.errcode === 40001) {
|
|
524
|
-
cache.
|
|
524
|
+
cache.clear()
|
|
525
525
|
return await this.createQR(options)
|
|
526
526
|
}
|
|
527
527
|
throw new Error(bufferResult.errmsg)
|
|
@@ -557,7 +557,7 @@ module.exports = class Singleton {
|
|
|
557
557
|
})
|
|
558
558
|
if (bufferResult.errcode) {
|
|
559
559
|
if (bufferResult.errcode === 40001) {
|
|
560
|
-
cache.
|
|
560
|
+
cache.clear()
|
|
561
561
|
return await this.createQRBuffer(options)
|
|
562
562
|
}
|
|
563
563
|
throw new Error(bufferResult.errmsg)
|
|
@@ -579,7 +579,7 @@ module.exports = class Singleton {
|
|
|
579
579
|
const result = await axios.post(url, formatOptions).then((res) => res.data)
|
|
580
580
|
if (result.errcode) {
|
|
581
581
|
if (result.errcode === 40001) {
|
|
582
|
-
cache.
|
|
582
|
+
cache.clear()
|
|
583
583
|
return await this.sendMessage(options)
|
|
584
584
|
}
|
|
585
585
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -593,7 +593,7 @@ module.exports = class Singleton {
|
|
|
593
593
|
const result = await axios.post(url, options).then((res) => res.data)
|
|
594
594
|
if (result.errcode) {
|
|
595
595
|
if (result.errcode === 40001) {
|
|
596
|
-
cache.
|
|
596
|
+
cache.clear()
|
|
597
597
|
return await this.handleMessage(options)
|
|
598
598
|
}
|
|
599
599
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -611,7 +611,7 @@ module.exports = class Singleton {
|
|
|
611
611
|
const result = await axios.post(url, options).then((res) => res.data)
|
|
612
612
|
if (result.errcode) {
|
|
613
613
|
if (result.errcode === 40001) {
|
|
614
|
-
cache.
|
|
614
|
+
cache.clear()
|
|
615
615
|
return await this.handleTyping(options)
|
|
616
616
|
}
|
|
617
617
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -631,7 +631,7 @@ module.exports = class Singleton {
|
|
|
631
631
|
const uploadResult = await uploadPromise(url, formData)
|
|
632
632
|
if (uploadResult.errcode) {
|
|
633
633
|
if (uploadResult.errcode === 40001) {
|
|
634
|
-
cache.
|
|
634
|
+
cache.clear()
|
|
635
635
|
return await this.uploadFile(imgUrl)
|
|
636
636
|
}
|
|
637
637
|
throw new Error(`${uploadResult.errcode};${uploadResult.errmsg}`)
|
|
@@ -649,7 +649,7 @@ module.exports = class Singleton {
|
|
|
649
649
|
.then((res) => res.data)
|
|
650
650
|
if (result.errcode) {
|
|
651
651
|
if (result.errcode === 40001) {
|
|
652
|
-
cache.
|
|
652
|
+
cache.clear()
|
|
653
653
|
return await this.invokeService(payLoad)
|
|
654
654
|
}
|
|
655
655
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -668,7 +668,7 @@ module.exports = class Singleton {
|
|
|
668
668
|
|
|
669
669
|
if (result.errcode) {
|
|
670
670
|
if (result.errcode === 40001) {
|
|
671
|
-
cache.
|
|
671
|
+
cache.clear()
|
|
672
672
|
return await this.createOrder(payLoad)
|
|
673
673
|
}
|
|
674
674
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -687,7 +687,7 @@ module.exports = class Singleton {
|
|
|
687
687
|
|
|
688
688
|
if (result.errcode) {
|
|
689
689
|
if (result.errcode === 40001) {
|
|
690
|
-
cache.
|
|
690
|
+
cache.clear()
|
|
691
691
|
return await this.getOrder(payLoad)
|
|
692
692
|
}
|
|
693
693
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -706,7 +706,7 @@ module.exports = class Singleton {
|
|
|
706
706
|
|
|
707
707
|
if (result.errcode) {
|
|
708
708
|
if (result.errcode === 40001) {
|
|
709
|
-
cache.
|
|
709
|
+
cache.clear()
|
|
710
710
|
return await this.refundOrder(payLoad)
|
|
711
711
|
}
|
|
712
712
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -725,7 +725,7 @@ module.exports = class Singleton {
|
|
|
725
725
|
.then((res) => res.data)
|
|
726
726
|
if (result.errcode) {
|
|
727
727
|
if (result.errcode === 40001) {
|
|
728
|
-
cache.
|
|
728
|
+
cache.clear()
|
|
729
729
|
return await this.addGood(payLoad)
|
|
730
730
|
}
|
|
731
731
|
// return payLoad
|
|
@@ -745,7 +745,7 @@ module.exports = class Singleton {
|
|
|
745
745
|
.then((res) => res.data)
|
|
746
746
|
if (result.errcode) {
|
|
747
747
|
if (result.errcode === 40001) {
|
|
748
|
-
cache.
|
|
748
|
+
cache.clear()
|
|
749
749
|
return await this.getCategory(payLoad)
|
|
750
750
|
}
|
|
751
751
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -764,7 +764,7 @@ module.exports = class Singleton {
|
|
|
764
764
|
.then((res) => res.data)
|
|
765
765
|
if (result.errcode) {
|
|
766
766
|
if (result.errcode === 40001) {
|
|
767
|
-
cache.
|
|
767
|
+
cache.clear()
|
|
768
768
|
return await this.getBrandList(payLoad)
|
|
769
769
|
}
|
|
770
770
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -783,7 +783,7 @@ module.exports = class Singleton {
|
|
|
783
783
|
.then((res) => res.data)
|
|
784
784
|
if (result.errcode) {
|
|
785
785
|
if (result.errcode === 40001) {
|
|
786
|
-
cache.
|
|
786
|
+
cache.clear()
|
|
787
787
|
return await this.getShipTemplate(payLoad)
|
|
788
788
|
}
|
|
789
789
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -802,7 +802,7 @@ module.exports = class Singleton {
|
|
|
802
802
|
.then((res) => res.data)
|
|
803
803
|
if (result.errcode) {
|
|
804
804
|
if (result.errcode === 40001) {
|
|
805
|
-
cache.
|
|
805
|
+
cache.clear()
|
|
806
806
|
return await this.uploadShip(payLoad)
|
|
807
807
|
}
|
|
808
808
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -821,7 +821,7 @@ module.exports = class Singleton {
|
|
|
821
821
|
.then((res) => res.data)
|
|
822
822
|
if (result.errcode) {
|
|
823
823
|
if (result.errcode === 40001) {
|
|
824
|
-
cache.
|
|
824
|
+
cache.clear()
|
|
825
825
|
return await this.uploadPreShip(payLoad)
|
|
826
826
|
}
|
|
827
827
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -840,7 +840,7 @@ module.exports = class Singleton {
|
|
|
840
840
|
.then((res) => res.data)
|
|
841
841
|
if (result.errcode) {
|
|
842
842
|
if (result.errcode === 40001) {
|
|
843
|
-
cache.
|
|
843
|
+
cache.clear()
|
|
844
844
|
return await this.getShipOrderList(payLoad)
|
|
845
845
|
}
|
|
846
846
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -867,7 +867,7 @@ module.exports = class Singleton {
|
|
|
867
867
|
|
|
868
868
|
if (result.errcode) {
|
|
869
869
|
if (result.errcode === 40001) {
|
|
870
|
-
cache.
|
|
870
|
+
cache.clear()
|
|
871
871
|
return await this.uploadImage(payLoad)
|
|
872
872
|
}
|
|
873
873
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -886,7 +886,7 @@ module.exports = class Singleton {
|
|
|
886
886
|
.then((res) => res.data)
|
|
887
887
|
if (result.errcode) {
|
|
888
888
|
if (result.errcode === 40001) {
|
|
889
|
-
cache.
|
|
889
|
+
cache.clear()
|
|
890
890
|
return await this.setMsgJumpPath(payLoad)
|
|
891
891
|
}
|
|
892
892
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -905,7 +905,7 @@ module.exports = class Singleton {
|
|
|
905
905
|
.then((res) => res.data)
|
|
906
906
|
if (result.errcode) {
|
|
907
907
|
if (result.errcode === 40001) {
|
|
908
|
-
cache.
|
|
908
|
+
cache.clear()
|
|
909
909
|
return await this.getDeliveryList(payLoad)
|
|
910
910
|
}
|
|
911
911
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -924,7 +924,7 @@ module.exports = class Singleton {
|
|
|
924
924
|
.then((res) => res.data)
|
|
925
925
|
if (result.errcode) {
|
|
926
926
|
if (result.errcode === 40001) {
|
|
927
|
-
cache.
|
|
927
|
+
cache.clear()
|
|
928
928
|
return await this.getUserPortrait(payLoad)
|
|
929
929
|
}
|
|
930
930
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -959,7 +959,7 @@ module.exports = class Singleton {
|
|
|
959
959
|
.then((res) => res.data)
|
|
960
960
|
if (result.errcode) {
|
|
961
961
|
if (result.errcode === 40001) {
|
|
962
|
-
cache.
|
|
962
|
+
cache.clear()
|
|
963
963
|
return await this.getVisitTrend(payLoad)
|
|
964
964
|
}
|
|
965
965
|
if (result.errcode === 61503) {
|
|
@@ -977,7 +977,7 @@ module.exports = class Singleton {
|
|
|
977
977
|
const result = await axios.get(url).then((res) => res.data)
|
|
978
978
|
if (result.errcode) {
|
|
979
979
|
if (result.errcode === 40001) {
|
|
980
|
-
cache.
|
|
980
|
+
cache.clear()
|
|
981
981
|
return await this.getCommentInfo(commentId)
|
|
982
982
|
}
|
|
983
983
|
if (result.errcode === 61503) {
|
|
@@ -995,7 +995,7 @@ module.exports = class Singleton {
|
|
|
995
995
|
const result = await axios.get(url).then((res) => res.data)
|
|
996
996
|
if (result.errcode) {
|
|
997
997
|
if (result.errcode === 40001) {
|
|
998
|
-
cache.
|
|
998
|
+
cache.clear()
|
|
999
999
|
return await this.createActivity()
|
|
1000
1000
|
}
|
|
1001
1001
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -1062,7 +1062,7 @@ module.exports = class Singleton {
|
|
|
1062
1062
|
const result = await axios.post(url, postData).then((res) => res.data)
|
|
1063
1063
|
if (result.errcode) {
|
|
1064
1064
|
if (result.errcode === 40001) {
|
|
1065
|
-
cache.
|
|
1065
|
+
cache.clear()
|
|
1066
1066
|
return await this.setUpdatableMsg(target)
|
|
1067
1067
|
}
|
|
1068
1068
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -1119,7 +1119,7 @@ module.exports = class Singleton {
|
|
|
1119
1119
|
const result = await axios.post(url, signData).then((res) => res.data)
|
|
1120
1120
|
if (result.errcode) {
|
|
1121
1121
|
if (result.errcode === 40001) {
|
|
1122
|
-
cache.
|
|
1122
|
+
cache.clear()
|
|
1123
1123
|
return await this.b2bRefund({ mchid, app_key, data })
|
|
1124
1124
|
}
|
|
1125
1125
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -1145,7 +1145,7 @@ module.exports = class Singleton {
|
|
|
1145
1145
|
const result = await axios.post(url, signData).then((res) => res.data)
|
|
1146
1146
|
if (result.errcode) {
|
|
1147
1147
|
if (result.errcode === 40001) {
|
|
1148
|
-
cache.
|
|
1148
|
+
cache.clear()
|
|
1149
1149
|
return await this.b2bCheckRefund({ mchid, app_key, out_refund_no })
|
|
1150
1150
|
}
|
|
1151
1151
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -1171,7 +1171,7 @@ module.exports = class Singleton {
|
|
|
1171
1171
|
const result = await axios.post(url, signData).then((res) => res.data)
|
|
1172
1172
|
if (result.errcode) {
|
|
1173
1173
|
if (result.errcode === 40001) {
|
|
1174
|
-
cache.
|
|
1174
|
+
cache.clear()
|
|
1175
1175
|
return await this.b2bCheckOrder({ mchid, app_key, out_trade_no })
|
|
1176
1176
|
}
|
|
1177
1177
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -1190,7 +1190,7 @@ module.exports = class Singleton {
|
|
|
1190
1190
|
.then((res) => res.data)
|
|
1191
1191
|
if (result.errcode) {
|
|
1192
1192
|
if (result.errcode === 40001) {
|
|
1193
|
-
cache.
|
|
1193
|
+
cache.clear()
|
|
1194
1194
|
return await this.b2bPreStore({
|
|
1195
1195
|
retail_info_list: list,
|
|
1196
1196
|
})
|
|
@@ -1218,7 +1218,7 @@ module.exports = class Singleton {
|
|
|
1218
1218
|
const result = await axios.post(url, signData).then((res) => res.data)
|
|
1219
1219
|
if (result.errcode) {
|
|
1220
1220
|
if (result.errcode === 40001) {
|
|
1221
|
-
cache.
|
|
1221
|
+
cache.clear()
|
|
1222
1222
|
return await this.b2bFinish({ mchid, app_key, out_trade_no })
|
|
1223
1223
|
}
|
|
1224
1224
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -82,7 +82,7 @@ module.exports = class Singleton {
|
|
|
82
82
|
const result = await axios.post(url).then((res) => res.data)
|
|
83
83
|
if (result.errcode) {
|
|
84
84
|
if (result.errcode === 40001) {
|
|
85
|
-
cache.
|
|
85
|
+
cache.clear()
|
|
86
86
|
return await this.getOpenList()
|
|
87
87
|
}
|
|
88
88
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -96,7 +96,7 @@ module.exports = class Singleton {
|
|
|
96
96
|
const result = await axios.post(url).then((res) => res.data)
|
|
97
97
|
if (result.errcode) {
|
|
98
98
|
if (result.errcode === 40001) {
|
|
99
|
-
cache.
|
|
99
|
+
cache.clear()
|
|
100
100
|
return await this.getUserInfo(openid)
|
|
101
101
|
}
|
|
102
102
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -120,7 +120,7 @@ module.exports = class Singleton {
|
|
|
120
120
|
.then((res) => res.data)
|
|
121
121
|
if (result.errcode) {
|
|
122
122
|
if (result.errcode === 40001) {
|
|
123
|
-
cache.
|
|
123
|
+
cache.clear()
|
|
124
124
|
return await this.getUserInfoList(list)
|
|
125
125
|
}
|
|
126
126
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -143,7 +143,7 @@ module.exports = class Singleton {
|
|
|
143
143
|
const result = await axios.post(url, formatOptions).then((res) => res.data)
|
|
144
144
|
if (result.errcode) {
|
|
145
145
|
if (result.errcode === 40001) {
|
|
146
|
-
cache.
|
|
146
|
+
cache.clear()
|
|
147
147
|
return await this.sendMessage(options)
|
|
148
148
|
}
|
|
149
149
|
throw new Error(`${result.errcode};${result.errmsg}`)
|
|
@@ -157,7 +157,7 @@ module.exports = class Singleton {
|
|
|
157
157
|
const result = await axios.post(url).then((res) => res.data)
|
|
158
158
|
if (result.errcode) {
|
|
159
159
|
if (result.errcode === 40001) {
|
|
160
|
-
cache.
|
|
160
|
+
cache.clear()
|
|
161
161
|
return await this.getTemplate()
|
|
162
162
|
}
|
|
163
163
|
throw new Error(`${result.errcode};${result.errmsg}`)
|