Skip to content

Commit b966a8d

Browse files
committed
更新 jdWuLiu.js
1 parent e4b937b commit b966a8d

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

task/jdWuLiu.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ const opts = {
8585
stateName !== '退款成功' &&
8686
stateName !== '处理成功'
8787
) {
88+
if (k > 0) {
89+
$.logText += `------------------------------------\n`;
90+
}
8891
wuLiuDetail = await getWuLiu(orderId);
8992
await showMsg(userInfo, wuLiuDetail, orderId);
9093
console.log($.logText);
@@ -191,25 +194,24 @@ function showMsg(userInfo, wuLiuDetail, orderId) {
191194
$.subt = ``;
192195
$.desc = `📦${carrier}${carriageId}\n📱手机尾号:${recvMobile.slice(
193196
-4
194-
)}\n🚚最新物流:${dealLog}`;
197+
)}`;
198+
$.info = `📘包含商品:${orderWareList[0].itemName.slice(
199+
0,
200+
20
201+
)}\n📗商品数目:${
202+
orderWareList.length
203+
}\n📕订单编号:${orderId}`;
204+
$.wl = `🚚最新物流:${dealLog}`;
205+
$.imgPath = `https://img30.360buyimg.com/jdwlcms/${orderWareList[0].itemImgPath}`;
195206
$.state = `🚥当前状态:${
196207
wuLiuStateCode === '0008'
197208
? '🟢签收'
198209
: wuLiuStateCode === '0006'
199210
? '🟡派送'
200211
: '🔴运输'
201-
}`;
202-
$.info = `📗商品数目:${
203-
orderWareList.length
204-
}\n📘订单编号:${orderId}\n📕包含商品:${orderWareList[0].itemName.slice(
205-
0,
206-
20
207-
)}\n`;
208-
$.imgPath = `https://img30.360buyimg.com/jdwlcms/${orderWareList[0].itemImgPath}`;
212+
}\n`;
209213

210-
$.logText += $.subt + '\n' + $.desc + '\n' + $.state + '\n' + $.info + '\n';
211-
$.logText += '------------------------------------';
212-
214+
$.logText += $.subt + '\n' + $.desc + '\n' + $.info + '\n' + $.wl + '\n' + $.state;
213215
// 已通知过的快递,跳过通知
214216
if ($.carriageIdArr.includes(carriageId)) {
215217
return resolve();
@@ -226,7 +228,7 @@ function showMsg(userInfo, wuLiuDetail, orderId) {
226228
$.setData(JSON.stringify($.carriageIdArr), $.CARRIAGE_ID_ARR_KEY);
227229
}
228230

229-
$.msg($.name, $.subt, $.desc, {
231+
$.msg($.name, $.subt, $.desc + '\n' + $.wl, {
230232
openUrl: `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://wqs.jd.com/order/n_detail_v2.shtml?deal_id=${orderId}%22%7D`,
231233
mediaUrl: $.imgPath,
232234
});

0 commit comments

Comments
 (0)