koishi-plugin-cocoyyy-console 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -506,7 +506,7 @@ async function randomImgByTag(tag_name, guild_id) {
|
|
|
506
506
|
if (!existed) {
|
|
507
507
|
throw new Error(`not found tag '${tag_name}'!`);
|
|
508
508
|
}
|
|
509
|
-
if (existed.status ==
|
|
509
|
+
if (existed.status == 1) {
|
|
510
510
|
throw new Error(`not found tag '${tag_name}'!`);
|
|
511
511
|
}
|
|
512
512
|
let ImgList = await Img.findAll({
|
|
@@ -1266,7 +1266,7 @@ ${list.map((item) => (0, import_koishi8.h)("at", { id: item })).join(",")}`;
|
|
|
1266
1266
|
exec = await instead_person(session.guildId, source_uid, target_uid);
|
|
1267
1267
|
if (!exec.result)
|
|
1268
1268
|
return `替换rbq失败:${exec.error}`;
|
|
1269
|
-
return `已替换rbq:${source_uid} -> ${target_uid}`;
|
|
1269
|
+
return `已替换rbq:${(0, import_koishi8.h)("at", { id: source_uid })} -> ${(0, import_koishi8.h)("at", { id: target_uid })}`;
|
|
1270
1270
|
});
|
|
1271
1271
|
ctx.command("rbqadd_txt <参数>", "添加自定义文本").action(async ({ session }, ...args) => {
|
|
1272
1272
|
if (!dev_mode) {
|
|
@@ -1612,7 +1612,7 @@ async function getToken2(session, mobile, code) {
|
|
|
1612
1612
|
createUpdateUser(userInfo);
|
|
1613
1613
|
userTokenMap.set(session.uid, userInfo);
|
|
1614
1614
|
logger.info(`[getToken Info]: 验证码登录成功,库街区用户: ${user_response.data.data.userName}`);
|
|
1615
|
-
return { status: true, data:
|
|
1615
|
+
return { status: true, data: userInfo };
|
|
1616
1616
|
} catch (error) {
|
|
1617
1617
|
logger.error(`[getToken Error]: ${error.message}`);
|
|
1618
1618
|
return { status: false, msg: "疑似网络问题,请检查控制台日志" };
|