Skip to content

Commit

Permalink
style: format code [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 29, 2024
1 parent 5bc2cfb commit 1902576
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion apps/gameCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion model/gameEnergy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
8 changes: 6 additions & 2 deletions model/kuroApiHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion model/mcGachaData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 1902576

Please sign in to comment.