shawenguan 1 year ago
parent
commit
ebf9c6ace7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Scripts/wubian/wubianRevokeEntrust.js

+ 5 - 2
Scripts/wubian/wubianRevokeEntrust.js

@@ -112,14 +112,16 @@ async function tryRevokeEntrust() {
         let retOrder = await getOrderList(0, page);
         if (retOrder && retOrder.code == 200) {
             let list = retOrder.data.list;
+            magicJS.logger.info(`获取订单第${page}页,共${list.length}/${retOrder.data.total}个订单!`);
             for (let i = 0; i < list.length; ++i) {
                 let orderInfo = list[i];
                 // 2=市场订单
                 // 4=合成订单
                 // 6=兑换订单
                 // 8=空投订单
-                // 9=委托订单
-                if (orderInfo.orderType == 9 && orderInfo.title.indexOf(name) > -1) {
+                // 13=委托订单
+                if (orderInfo.orderType == 13 && orderInfo.title.indexOf(name) > -1) {
+                    magicJS.logger.info(`找到[${orderInfo.title}]${orderInfo.createdTime}的一个委托单,状态:${orderInfo.state}!`);
                     if (orderInfo.state == -1) {//已取消
                         continue;
                     }
@@ -133,6 +135,7 @@ async function tryRevokeEntrust() {
 
                     }
                     entrustOrderTotal += 1;
+                    magicJS.logger.info(`正在撤销[${orderInfo.title}x${orderInfo.num}]¥${orderInfo.price}委托单...`);
                     let retDetail = await getOrderInfo(orderInfo.orderSn);
                     if (retDetail && retDetail.code == 200) {
                         optOrderNum += 1;