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.
- package/lib/index.js +3 -1
- 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("
|
|
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);
|