Skip to content

Commit 2d9f8cc

Browse files
committed
更新 jdWuLiu.js
1 parent f17961d commit 2d9f8cc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

task/jdWuLiu.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ const opts = {
7474
stateInfo: { stateName },
7575
} = orderList[k];
7676

77+
$.logText = '';
7778
if (k === 0) {
78-
console.log('====================================');
79-
console.log(`🙆🏻‍♂️账号:${userInfo.baseInfo.nickname}`);
79+
console.log('====================================\n');
80+
$.logText += `🙆🏻‍♂️账号:${userInfo.baseInfo.nickname}\n`;
81+
// console.log(`🙆🏻‍♂️账号:${userInfo.baseInfo.nickname}`);
8082
}
8183
// 忽略取消订单以及非实物订单
8284
if (
@@ -206,12 +208,10 @@ function showMsg(userInfo, wuLiuDetail, orderId) {
206208
)}\n`;
207209
$.imgPath = `https://img30.360buyimg.com/jdwlcms/${orderWareList[0].itemImgPath}`;
208210

209-
console.log($.subt);
210-
console.log($.desc);
211-
console.log($.state);
212-
console.log($.info);
211+
$.logText += $.subt + '\n' + $.desc + '\n' + $.state + '\n' + $.info;
212+
213+
console.log($.logText);
213214
console.log('------------------------------------');
214-
215215
// 已通知过的快递,跳过通知
216216
if ($.carriageIdArr.includes(carriageId)) {
217217
return resolve();

0 commit comments

Comments
 (0)