|
|
@@ -105,7 +105,10 @@ async function all() {
|
|
|
lk.execFail();
|
|
|
lk.appendNotifyInfo(`⚠️请先打开光予登录获取token`);
|
|
|
} else {
|
|
|
- await checkBuy();
|
|
|
+ // await checkBuy();
|
|
|
+ let price = lk.getVal(gardartLimitPriceKey, 0);
|
|
|
+ lk.log(gardartLimitPriceKey + "="+type(price)+":"+price);
|
|
|
+ hasNeedSendNotify = false;
|
|
|
}
|
|
|
if (hasNeedSendNotify) {
|
|
|
lk.msg(``);
|
|
|
@@ -115,9 +118,14 @@ async function all() {
|
|
|
|
|
|
function checkBuy() {
|
|
|
return new Promise((resolve, _reject) => {
|
|
|
- let price = lk.getVal(gardartLimitPriceKey, 0);
|
|
|
- lk.log(gardartLimitPriceKey + "="+type(price)+":"+price);
|
|
|
- return resolve();
|
|
|
+ try {
|
|
|
+ let price = lk.getVal(gardartLimitPriceKey, 0);
|
|
|
+ lk.log(gardartLimitPriceKey + "="+type(price)+":"+price);
|
|
|
+ } catch (e) {
|
|
|
+ lk.logErr(e);
|
|
|
+ } finally {
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|