Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxk0301 committed Apr 23, 2021
1 parent ea82840 commit ccab032
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jd_kd.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function userSignIn() {

} else if (data.code === -1) {
console.log(`今日已签到`)
message += `【签到】失败,今日已签到`;
// message += `【签到】失败,今日已签到`;
} else {
console.log(`异常:${JSON.stringify(data)}`)
}
Expand Down
4 changes: 3 additions & 1 deletion jd_market_lottery.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const JD_API_HOST = "https://api.m.jd.com/client.action";
});
function showMsg() {
return new Promise(async resolve => {
$.msg($.name, '', allMsg);
if (allMsg) $.msg($.name, '', allMsg);
resolve();
})
}
Expand Down Expand Up @@ -106,6 +106,8 @@ async function getInfo(url) {
if(lotteryScore<=userScore) {
console.log(`抽奖需要${lotteryScore},当前${userScore}分,去抽奖`)
await doLottery("a84f9428da0bb36a6a11884c54300582")
} else {
console.log(`当前积分已不足去抽奖`)
}
}
}catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion jd_moneyTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if ($.isNode()) {
}

let jdNotify = false;//是否开启静默运行,默认false开启
let sellFruit = true;//是否卖出金果得到金币,默认'false'不卖
let sellFruit = true;//是否卖出金果得到金币,默认'true'卖金果
const JD_API_HOST = 'https://ms.jr.jd.com/gw/generic/uc/h5/m';
let userInfo = null, taskInfo = [], message = '', subTitle = '', fruitTotal = 0;
!(async () => {
Expand Down
4 changes: 2 additions & 2 deletions jd_plantBean.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ async function doCultureBean() {
async function stealFriendWater() {
await stealFriendList();
if ($.stealFriendList && $.stealFriendList.code === '0') {
if ($.stealFriendList.data.tips) {
console.log('偷取好友营养液今日已达上限');
if ($.stealFriendList.data && $.stealFriendList.data.tips) {
console.log('\n\n今日偷取好友营养液已达上限\n\n');
return
}
if ($.stealFriendList.data && $.stealFriendList.data.friendInfoList && $.stealFriendList.data.friendInfoList.length > 0) {
Expand Down
4 changes: 2 additions & 2 deletions lxk0301.boxjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@
{
"id": "MONEY_TREE_SELL_FRUIT",
"name": "是否卖出金果获得金币",
"val": false,
"val": true,
"type": "boolean",
"desc": "是否卖出金果获得金币,金币具有有效期,默认不卖出"
"desc": "是否卖出金果获得金币,金币具有有效期,默认卖出"
}
],
"author": "@lxk0301",
Expand Down

0 comments on commit ccab032

Please sign in to comment.