| 1228 | $.waterFriendForFarmRes = await request('waterFriendForFarm', body); |
| 1229 | } |
| 1230 | async function showMsg() { |
| 1231 | if ($.isNode() && process.env.FRUIT_NOTIFY_CONTROL) { |
| 1232 | $.ctrTemp = `${process.env.FRUIT_NOTIFY_CONTROL}` === 'false'; |
| 1233 | } else if ($.getdata('jdFruitNotify')) { |
| 1234 | $.ctrTemp = $.getdata('jdFruitNotify') === 'false'; |
| 1235 | } else { |
| 1236 | $.ctrTemp = `${jdNotify}` === 'false'; |
| 1237 | } |
| 1238 | if ($.ctrTemp) { |
| 1239 | $.msg($.name, subTitle, message, option); |
| 1240 | if ($.isNode()) { |
| 1241 | allMessage += `${subTitle}\n${message}${$.index !== cookiesArr.length ? '\n\n' : ''}`; |
| 1242 | // await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `${subTitle}\n${message}`); |
| 1243 | } |
| 1244 | } else { |
| 1245 | $.log(`\n${message}\n`); |
| 1246 | } |
| 1247 | } |
| 1248 | |
| 1249 | function timeFormat(time) { |
| 1250 | let date; |