koishi-plugin-jscn-aaaquery 1.0.12 → 1.0.13

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 +4 -20
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1037,17 +1037,9 @@ function apply(ctx, config) {
1037
1037
  );
1038
1038
  } else if (accountInfo.onlineStatus === "离线" || accountInfo.onlineStatus === "不在线" || accountInfo.isPass === "原因未知") {
1039
1039
  message.push(
1040
- `MAC地址: ${accountInfo.mac || "未知"}`
1040
+ `未检索到账号信息⚠️`,
1041
+ `请检查ONU配置和账号是否正确或尝试重新拨号!`
1041
1042
  );
1042
- if (accountInfo.startTime) {
1043
- message.push(`最后在线: ${accountInfo.startTime || "未知"}`);
1044
- }
1045
- if (accountInfo.offlineReason) {
1046
- message.push(`离线原因: ${accountInfo.offlineReason || "未知"}`);
1047
- }
1048
- if (accountInfo.reasonAnaly) {
1049
- message.push(`原因分析: ${accountInfo.reasonAnaly || "未知"}`);
1050
- }
1051
1043
  } else {
1052
1044
  message.push(
1053
1045
  `IP地址: ${accountInfo.userIp}`,
@@ -1171,17 +1163,9 @@ function apply(ctx, config) {
1171
1163
  );
1172
1164
  } else if (accountInfo.onlineStatus === "离线" || accountInfo.onlineStatus === "不在线" || accountInfo.isPass === "原因未知") {
1173
1165
  message.push(
1174
- `MAC地址: ${accountInfo.mac || "未知"}`
1166
+ `未检索到账号信息⚠️`,
1167
+ `请检查ONU配置和账号是否正确或尝试重新拨号!`
1175
1168
  );
1176
- if (accountInfo.startTime) {
1177
- message.push(`最后在线: ${accountInfo.startTime || "未知"}`);
1178
- }
1179
- if (accountInfo.offlineReason) {
1180
- message.push(`离线原因: ${accountInfo.offlineReason || "未知"}`);
1181
- }
1182
- if (accountInfo.reasonAnaly) {
1183
- message.push(`原因分析: ${accountInfo.reasonAnaly || "未知"}`);
1184
- }
1185
1169
  } else {
1186
1170
  message.push(
1187
1171
  `IP地址: ${accountInfo.userIp}`,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-jscn-aaaquery",
3
3
  "description": "江苏有线无锡分公司宽带信息查询插件",
4
- "version": "1.0.12",
4
+ "version": "1.0.13",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [