diff --git a/apps/fun.js b/apps/fun.js index 7490120..83a5139 100644 --- a/apps/fun.js +++ b/apps/fun.js @@ -168,7 +168,7 @@ export class example extends plugin { while (true) { // let res = await Bot.sendLike(e.user_id, 10) let res = await common.thumbUp(e.user_id, 10) - logger.debug(res) + logger.debug("[椰奶点赞]", res) if (res.code != 0) { if (res.code == 1) { failsmsg = "点赞失败,请检查是否开启陌生人点赞或添加好友" diff --git a/model/common.js b/model/common.js index 7f5f8f1..6279000 100644 --- a/model/common.js +++ b/model/common.js @@ -97,6 +97,8 @@ export default new class common { let result = core.jce.decodeWrapper(payload)[0]; return { code: result[3], msg: result[4] }; } + + //时间单位 get Time_unit() { return { "毫秒": 0.001,