|
|
@@ -95,22 +95,20 @@ function getMyPayWalletList() {
|
|
|
async function checkTryPayAll() {
|
|
|
gandartPasswordPlaintext = getMyPasswordPlainText();
|
|
|
gandartWalletList = getMyPayWalletList();
|
|
|
-
|
|
|
- let publicKey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLNvxrg2/FbSR9Kd5+MIu9b7qvAng4Tl+RbsqtClSD3TIJ5LeGHQqSNZEpo9MYGlpKWMWVc982c37ZLJKrgX+8Lkcs+emM6pVYR5HHy3hbi5wX6Fs/1u47zyaMMJ5Hqtx7B7yKb/zh5E5irKM3LiODUO2Ad1Rlqji5c7txI9t+zwIDAQAB";
|
|
|
- let accountPassword = encryptPassword(publicKey, gandartPasswordPlaintext);
|
|
|
- lk.log('passwordPlaintext=' + gandartPasswordPlaintext);
|
|
|
- lk.log('accountPassword=' + accountPassword);
|
|
|
-
|
|
|
let orderLstInfo = await getNftOrderList(0);
|
|
|
let orderCnt = orderLstInfo.total;
|
|
|
let paySuccCnt = 0;
|
|
|
if (orderCnt > 0) {
|
|
|
let orderLst = orderLstInfo.rows;
|
|
|
- for (let info of orderLst) {
|
|
|
- let isOk = checkPay(info.orderNo, info.orderNum);
|
|
|
- if (isOk) {
|
|
|
- paySuccCnt++;
|
|
|
+ if (orderLst.length > 0) {
|
|
|
+ for (let info of orderLst) {
|
|
|
+ let isOk = checkPay(info.orderNo, info.orderNum);
|
|
|
+ if (isOk) {
|
|
|
+ paySuccCnt++;
|
|
|
+ }
|
|
|
}
|
|
|
+ } else {
|
|
|
+ lk.log('不存在未支付订单');
|
|
|
}
|
|
|
}
|
|
|
return paySuccCnt;
|