koishi-plugin-jscn-aaaquery 1.0.9 → 1.0.11
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 +16 -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
|
-
|
|
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
|
-
|
|
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 {
|