koishi-plugin-smmcat-eazyfeedback 0.0.1 → 0.0.2

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 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -457,6 +457,7 @@ ${data.title}
457
457
  });
458
458
  });
459
459
  ctx.command("问卷反馈/问卷查询").action(async ({ session }) => {
460
+ if (!config.masterList.includes(session.userId)) return `权限不足!`;
460
461
  const _data = (await ctx.database.get("smmcat_eazy_feedback_title", {})).reverse();
461
462
  if (!_data.length) return `当前还没有创建任何问卷`;
462
463
  const maxLen = Math.ceil(_data.length / 10);
@@ -503,7 +504,8 @@ ${data.title}
503
504
  }
504
505
  }
505
506
  });
506
- ctx.command("查询回复 <mid:posint>").action(async ({ session }, mid) => {
507
+ ctx.command("问卷反馈/查询回复 <mid:posint>").action(async ({ session }, mid) => {
508
+ if (!config.masterList.includes(session.userId)) return `权限不足!`;
507
509
  const _data = (await ctx.database.get("smm_eazy_feedback_log", { mid })).reverse();
508
510
  if (!_data.length) return `当前该 快捷问卷/反馈 还没有任何回复`;
509
511
  const maxLen = Math.ceil(_data.length / 10);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-eazyfeedback",
3
3
  "description": "更容易让用户反馈的反馈功能",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [