koishi-plugin-jscn-aaaquery 1.0.9 → 1.0.10

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 +16 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -994,7 +994,14 @@ function apply(ctx, config) {
994
994
  try {
995
995
  const radiusUserInfo = await queryRadiusUser(input);
996
996
  if (radiusUserInfo.code !== "000000" || !radiusUserInfo.data) {
997
- return `账号授权查询失败:${radiusUserInfo.message || "请确认账号是否正确"}`;
997
+ const message = [
998
+ "🌐 账号查询结果",
999
+ "--------------------------------",
1000
+ `账号: ${input}`,
1001
+ `RADIUS状态: ${radiusUserInfo.message || "账号授权验证失败"} ❌`,
1002
+ "--------------------------------"
1003
+ ].join("\n");
1004
+ return message;
998
1005
  }
999
1006
  const { user, orders } = radiusUserInfo.data;
1000
1007
  try {
@@ -1121,7 +1128,14 @@ function apply(ctx, config) {
1121
1128
  try {
1122
1129
  const radiusUserInfo = await queryRadiusUser(account);
1123
1130
  if (radiusUserInfo.code !== "000000" || !radiusUserInfo.data) {
1124
- return `账号授权查询失败:${radiusUserInfo.message || "请确认账号是否正确"}`;
1131
+ const message = [
1132
+ "🌐 账号查询结果",
1133
+ "--------------------------------",
1134
+ `账号: ${account}`,
1135
+ `RADIUS状态: ${radiusUserInfo.message || "账号授权验证失败"} ❌`,
1136
+ "--------------------------------"
1137
+ ].join("\n");
1138
+ return message;
1125
1139
  }
1126
1140
  const { user, orders } = radiusUserInfo.data;
1127
1141
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-jscn-aaaquery",
3
3
  "description": "江苏有线无锡分公司宽带信息查询插件",
4
- "version": "1.0.9",
4
+ "version": "1.0.10",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [