diff --git a/apps/gameCard.js b/apps/gameCard.js index 244560a..badf877 100644 --- a/apps/gameCard.js +++ b/apps/gameCard.js @@ -66,7 +66,10 @@ export class gameCardApp extends plugin { } await updateCardBg() - gameCardApp.pnsCardData.img = await puppeteer.screenshot('gameCardPns', data) + gameCardApp.pnsCardData.img = await puppeteer.screenshot( + 'gameCardPns', + data + ) gameCardApp.pnsCardData.md5 = tmp return gameCardApp.pnsCardData.img diff --git a/model/gameEnergy.js b/model/gameEnergy.js index 00cb11e..c33372b 100644 --- a/model/gameEnergy.js +++ b/model/gameEnergy.js @@ -187,7 +187,9 @@ export async function doMcEnergy(uin, kuro_uid) { } doMcSignInRet += ` ${formatTimestampInReadableFormat( rsp_getMcWidgetData.data.energyData.refreshTimeStamp - )}回满 (${rsp_getMcWidgetData.data.energyData.cur}/${rsp_getMcWidgetData.data.energyData.total})\n` + )}回满 (${rsp_getMcWidgetData.data.energyData.cur}/${ + rsp_getMcWidgetData.data.energyData.total + })\n` await sleepAsync(getRandomInt(100, 600)) } diff --git a/model/kuroApiHandler.js b/model/kuroApiHandler.js index 4650305..57d59a1 100644 --- a/model/kuroApiHandler.js +++ b/model/kuroApiHandler.js @@ -283,7 +283,9 @@ export default class kuroApiHandler { kuroUid.length - 1 )}.0.${kuroUid.substring(kuroUid.length - 4)}.${kuroUid.substring( kuroUid.length - 2 - )} Mobile Safari/537.36 Kuro/${this.kuroBbsVersion} KuroGameBox/${this.kuroBbsVersion}`, + )} Mobile Safari/537.36 Kuro/${this.kuroBbsVersion} KuroGameBox/${ + this.kuroBbsVersion + }`, 'content-type': 'application/x-www-form-urlencoded', accept: 'application/json, text/plain, */*', devcode: `192.168.1.1${kuroUid.substring( @@ -292,7 +294,9 @@ export default class kuroApiHandler { kuroUid.length - 1 )}.0.${kuroUid.substring(kuroUid.length - 4)}.${kuroUid.substring( kuroUid.length - 2 - )} Mobile Safari/537.36 Kuro/${this.kuroBbsVersion} KuroGameBox/${this.kuroBbsVersion}`, + )} Mobile Safari/537.36 Kuro/${this.kuroBbsVersion} KuroGameBox/${ + this.kuroBbsVersion + }`, token: token, 'sec-ch-ua-platform': '"Android"', origin: 'https://web-static.kurobbs.com', diff --git a/model/mcGachaData.js b/model/mcGachaData.js index cebcf1f..9e4e2bd 100644 --- a/model/mcGachaData.js +++ b/model/mcGachaData.js @@ -98,7 +98,8 @@ export default class mcGachaData { if (willUpdateMsg) { try { if (this.e.group) this.e.group.recallMsg(willUpdateMsg.message_id) - if (this.e.friend) this.e.friend.recallMsg(willUpdateMsg.message_id) + if (this.e.friend) + this.e.friend.recallMsg(willUpdateMsg.message_id) } catch (err) { kuroLogger.warn('撤回消息失败:', JSON.stringify(err)) }