koishi-plugin-smmcat-selfhelp 0.0.3 → 0.0.4

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 +6 -6
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -215,7 +215,7 @@ function apply(ctx, config) {
215
215
  return {
216
216
  msg: goalItem.selectMenu.replace(/\\/g, "") + (goalItem.crumbs ? `
217
217
 
218
- [当前位置] ${goalItem.crumbs}` : "\n\n主菜单") + "\n\n#. 上页\n=. 首页\n0. 退出",
218
+ [当前位置] ${goalItem.crumbs}` : "\n\n主菜单") + "\n\nQ. 上页\nP. 首页\n0. 退出",
219
219
  err: false
220
220
  };
221
221
  } else {
@@ -225,7 +225,7 @@ ${goalItem.crumbs}
225
225
  ` : "主菜单\n") + `----------------------------
226
226
  ` + (goalItem.title ? `${goalItem.title}
227
227
 
228
- ` : "") + `${goalItem.selectMenu.map((item) => item.name).join("\n") + "\n\n#. 上页\n=. 首页\n0. 退出"}
228
+ ` : "") + `${goalItem.selectMenu.map((item) => item.name).join("\n") + "\n\nQ. 上页\nP. 首页\n0. 退出"}
229
229
  ----------------------------
230
230
  `,
231
231
  err: false
@@ -253,17 +253,17 @@ ${goalItem.crumbs}
253
253
  if (res === void 0) {
254
254
  break;
255
255
  }
256
- if (isNaN(Number(res)) && res !== "#" && res !== "=") {
256
+ if (isNaN(Number(res)) && res !== "Q" && res !== "P") {
257
257
  await session.send("请输入指定序号下标");
258
258
  continue;
259
259
  }
260
- if (!res || res == "0") {
260
+ if (res == "0") {
261
261
  res == "0" && await session.send("已退出自助服务");
262
262
  break;
263
263
  }
264
- if (res === "#") {
264
+ if (res === "Q") {
265
265
  proce.pop();
266
- } else if (res === "=") {
266
+ } else if (res === "P") {
267
267
  proce.length = 0;
268
268
  } else {
269
269
  proce.push(res);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-selfhelp",
3
3
  "description": "用户自助服务系统",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [