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.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. 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 == 0) {
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: user_response.data.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: "疑似网络问题,请检查控制台日志" };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-cocoyyy-console",
3
3
  "description": "自用koishi插件,功能包含复读,记录黑历史,*人等",
4
- "version": "1.0.12",
4
+ "version": "1.0.13",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "contributors": [