ms-vite-plugin 1.4.59 → 1.4.61

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 (83) hide show
  1. package/dist/luaBundle.js +1 -1
  2. package/dist/luaObfuscator/addVararg.d.ts +2 -0
  3. package/dist/luaObfuscator/addVararg.js +1 -0
  4. package/dist/luaObfuscator/antiTamper.d.ts +2 -0
  5. package/dist/luaObfuscator/antiTamper.js +26 -0
  6. package/dist/luaObfuscator/ast.d.ts +191 -0
  7. package/dist/luaObfuscator/ast.js +1 -0
  8. package/dist/luaObfuscator/cipher.d.ts +10 -0
  9. package/dist/luaObfuscator/cipher.js +28 -0
  10. package/dist/luaObfuscator/compiler.d.ts +31 -0
  11. package/dist/luaObfuscator/compiler.js +1 -0
  12. package/dist/luaObfuscator/constantArray.d.ts +5 -0
  13. package/dist/luaObfuscator/constantArray.js +1 -0
  14. package/dist/luaObfuscator/flatten.d.ts +2 -0
  15. package/dist/luaObfuscator/flatten.js +1 -0
  16. package/dist/luaObfuscator/index.d.ts +6 -0
  17. package/dist/luaObfuscator/index.js +1 -0
  18. package/dist/luaObfuscator/lexer.d.ts +14 -0
  19. package/dist/luaObfuscator/lexer.js +10 -0
  20. package/dist/luaObfuscator/minify.d.ts +3 -0
  21. package/dist/luaObfuscator/minify.js +1 -0
  22. package/dist/luaObfuscator/numbers.d.ts +2 -0
  23. package/dist/luaObfuscator/numbers.js +1 -0
  24. package/dist/luaObfuscator/opcodes.d.ts +3 -0
  25. package/dist/luaObfuscator/opcodes.js +1 -0
  26. package/dist/luaObfuscator/parser.d.ts +8 -0
  27. package/dist/luaObfuscator/parser.js +1 -0
  28. package/dist/luaObfuscator/rename.d.ts +3 -0
  29. package/dist/luaObfuscator/rename.js +1 -0
  30. package/dist/luaObfuscator/reserved.d.ts +5 -0
  31. package/dist/luaObfuscator/reserved.js +1 -0
  32. package/dist/luaObfuscator/scope.d.ts +11 -0
  33. package/dist/luaObfuscator/scope.js +1 -0
  34. package/dist/luaObfuscator/selftest.d.ts +1 -0
  35. package/dist/luaObfuscator/selftest.js +39 -0
  36. package/dist/luaObfuscator/splitStrings.d.ts +2 -0
  37. package/dist/luaObfuscator/splitStrings.js +1 -0
  38. package/dist/luaObfuscator/strings.d.ts +4 -0
  39. package/dist/luaObfuscator/strings.js +1 -0
  40. package/dist/luaObfuscator/visit.d.ts +5 -0
  41. package/dist/luaObfuscator/visit.js +1 -0
  42. package/dist/luaObfuscator/vmEmit.d.ts +2 -0
  43. package/dist/luaObfuscator/vmEmit.js +281 -0
  44. package/dist/luaObfuscator/wrapInFunction.d.ts +2 -0
  45. package/dist/luaObfuscator/wrapInFunction.js +1 -0
  46. package/docs/AGENTS.md +1 -1
  47. package/docs/SKILL.md +1 -1
  48. package/docs/api/hid.md +21 -0
  49. package/docs/apicn/hid.md +21 -0
  50. package/docs/apilua/action.md +2 -27
  51. package/docs/apilua/appleocr.md +2 -6
  52. package/docs/apilua/cloud.md +2 -6
  53. package/docs/apilua/config.md +2 -6
  54. package/docs/apilua/cryptoUtils.md +2 -7
  55. package/docs/apilua/device.md +2 -19
  56. package/docs/apilua/dotocr.md +2 -5
  57. package/docs/apilua/file.md +2 -17
  58. package/docs/apilua/global.md +1 -1
  59. package/docs/apilua/hid.md +25 -44
  60. package/docs/apilua/hotUpdate.md +2 -3
  61. package/docs/apilua/http.md +2 -7
  62. package/docs/apilua/image.md +2 -20
  63. package/docs/apilua/ime.md +2 -10
  64. package/docs/apilua/logger.md +3 -9
  65. package/docs/apilua/media.md +2 -9
  66. package/docs/apilua/mysql.md +2 -10
  67. package/docs/apilua/netCard.md +2 -6
  68. package/docs/apilua/node.md +2 -3
  69. package/docs/apilua/opencv.md +1 -27
  70. package/docs/apilua/paddleocr.md +2 -7
  71. package/docs/apilua/pip.md +2 -12
  72. package/docs/apilua/system.md +2 -23
  73. package/docs/apilua/tomatoocr.md +2 -16
  74. package/docs/apilua/tts.md +2 -9
  75. package/docs/apilua/ui.md +3 -9
  76. package/docs/apilua/utils.md +2 -9
  77. package/docs/apilua/yolo.md +2 -4
  78. package/docs/apilua/yolocls.md +2 -5
  79. package/docs/apipython/hid.md +22 -0
  80. package/docs/mcp-agent-description.md +1 -1
  81. package/docs/quick/vscode/createProject.md +1 -1
  82. package/docs/quick/vscode/packProject.md +1 -1
  83. package/package.json +1 -1
@@ -1,5 +1,7 @@
1
1
  # 配置模块 (Config)
2
2
 
3
+ 模块表是内置全局 `config`,直接调用即可。不要 `require` 宿主模块。
4
+
3
5
  配置模块提供了读取、更新和删除应用配置的功能。
4
6
 
5
7
  网页的 ms.setConfig 对应 config.set
@@ -28,7 +30,6 @@ function all() end
28
30
  **示例:**
29
31
 
30
32
  ```lua
31
- local config = require("config")
32
33
  local allConfigs = config.all()
33
34
  print("所有配置: " .. tostring(ToJsonString(allConfigs, nil, 2)))
34
35
  ```
@@ -56,7 +57,6 @@ function setAll(config) end
56
57
  **示例:**
57
58
 
58
59
  ```lua
59
- local config = require("config")
60
60
  local success = config.setAll({ maxRetries = 5, debugEnabled = true })
61
61
  if success then
62
62
  print("所有配置已更新")
@@ -88,7 +88,6 @@ function set(key, value) end
88
88
  **示例:**
89
89
 
90
90
  ```lua
91
- local config = require("config")
92
91
  -- 更新不同类型的配置
93
92
  local success1 = config.set("maxRetries", 5)
94
93
  local success2 = config.set("apiBaseUrl", "https://api.example.com")
@@ -122,7 +121,6 @@ function get(key) end
122
121
  **示例:**
123
122
 
124
123
  ```lua
125
- local config = require("config")
126
124
  local maxRetries = config.get("maxRetries")
127
125
  if maxRetries ~= nil then
128
126
  print("最大重试次数: " .. tostring(maxRetries))
@@ -145,7 +143,6 @@ function getKuiConfig() end
145
143
  **示例:**
146
144
 
147
145
  ```lua
148
- local config = require("config")
149
146
  local kuiConfig = config.getKuiConfig()
150
147
  print("KUI 配置: " .. tostring(ToJsonString(kuiConfig, nil, 2)))
151
148
  ```
@@ -173,7 +170,6 @@ function remove(key) end
173
170
  **示例:**
174
171
 
175
172
  ```lua
176
- local config = require("config")
177
173
  local deleted = config.remove("temporaryConfig")
178
174
  if deleted then
179
175
  print("临时配置已删除")
@@ -1,5 +1,7 @@
1
1
  # 加密模块 (CryptoUtils)
2
2
 
3
+ 模块表是内置全局 `cryptoUtils`,直接调用即可。不要 `require` 宿主模块。
4
+
3
5
  加密模块提供了常用的加密和解密功能,支持 AES、RSA 以及 MD5、SHA1、SHA256 等哈希算法。
4
6
 
5
7
  ## 功能概览
@@ -41,7 +43,6 @@ function encryptWithAES_ECB(data, aesKey, noPadding) end
41
43
  **示例:**
42
44
 
43
45
  ```lua
44
- local cryptoUtils = require("cryptoUtils")
45
46
  local data = "Hello World"
46
47
  local key = "1234567890123456"; -- 16位密钥
47
48
  local encrypted = cryptoUtils.encryptWithAES_ECB(data, key)
@@ -77,7 +78,6 @@ function decryptWithAES_ECB(data, aesKey, noPadding) end
77
78
  **示例:**
78
79
 
79
80
  ```lua
80
- local cryptoUtils = require("cryptoUtils")
81
81
  local encryptedData = "Base64EncodedString..."
82
82
  local key = "1234567890123456"
83
83
  local decrypted = cryptoUtils.decryptWithAES_ECB(encryptedData, key)
@@ -113,7 +113,6 @@ function encryptWithRSA(data, rsaPublicKey) end
113
113
  **示例:**
114
114
 
115
115
  ```lua
116
- local cryptoUtils = require("cryptoUtils")
117
116
  local data = "123456"
118
117
  local publicKey = "-----BEGIN PUBLIC KEY-----
119
118
  公钥内容
@@ -150,7 +149,6 @@ function decryptWithRSA(data, rsaPrivateKey) end
150
149
  **示例:**
151
150
 
152
151
  ```lua
153
- local cryptoUtils = require("cryptoUtils")
154
152
  local encryptedData = "加密后字符串"
155
153
  local privateKey = "-----BEGIN PRIVATE KEY-----
156
154
  私钥内容
@@ -184,7 +182,6 @@ function md5(data) end
184
182
  **示例:**
185
183
 
186
184
  ```lua
187
- local cryptoUtils = require("cryptoUtils")
188
185
  local data = "123456"
189
186
  local hash = cryptoUtils.md5(data)
190
187
  print("MD5 = " .. tostring(hash)); -- e10adc3949ba59abbe56e057f20f883e
@@ -215,7 +212,6 @@ function sha1(data, key) end
215
212
  **示例:**
216
213
 
217
214
  ```lua
218
- local cryptoUtils = require("cryptoUtils")
219
215
  local data = "123456"
220
216
  local hash = cryptoUtils.sha1(data)
221
217
  print("SHA1 = " .. tostring(hash))
@@ -246,7 +242,6 @@ function sha256(data, key) end
246
242
  **示例:**
247
243
 
248
244
  ```lua
249
- local cryptoUtils = require("cryptoUtils")
250
245
  local data = "123456"
251
246
  local hash = cryptoUtils.sha256(data)
252
247
  print("SHA256 = " .. tostring(hash))
@@ -1,5 +1,7 @@
1
1
  # 设备模块 (Device)
2
2
 
3
+ 模块表是内置全局 `device`,直接调用即可。不要 `require` 宿主模块。
4
+
3
5
  设备模块提供了获取设备信息和设备操作的功能,包括电池信息、设备标识、屏幕信息、系统信息等。
4
6
 
5
7
  ## 电池信息
@@ -21,7 +23,6 @@ function getBatteryInfo() end
21
23
  **示例:**
22
24
 
23
25
  ```lua
24
- local device = require("device")
25
26
  -- 获取电池信息
26
27
  local battery = device.getBatteryInfo()
27
28
  print("电池电量: " .. tostring(battery.level) .. "%")
@@ -48,7 +49,6 @@ function getStorageSpace() end
48
49
  **示例:**
49
50
 
50
51
  ```lua
51
- local device = require("device")
52
52
  local storage = device.getStorageSpace()
53
53
  print("总存储: " .. tostring(storage.total) .. tostring(storage.unit))
54
54
  print("剩余存储: " .. tostring(storage.free) .. tostring(storage.unit))
@@ -77,7 +77,6 @@ function getDeviceID() end
77
77
  **示例:**
78
78
 
79
79
  ```lua
80
- local device = require("device")
81
80
  -- 获取设备ID
82
81
  local uuid = device.getDeviceID()
83
82
  print("设备ID = " .. tostring(uuid))
@@ -104,7 +103,6 @@ function getServerDeviceId() end
104
103
  **示例:**
105
104
 
106
105
  ```lua
107
- local device = require("device")
108
106
  -- 获取服务器设备ID
109
107
  local serverDeviceId = device.getServerDeviceId()
110
108
  print("服务器设备ID = " .. tostring(serverDeviceId))
@@ -126,7 +124,6 @@ function getECID() end
126
124
  **示例:**
127
125
 
128
126
  ```lua
129
- local device = require("device")
130
127
  -- 获取ECID
131
128
  local ecid = device.getECID()
132
129
  print("ECID = " .. tostring(ecid))
@@ -148,7 +145,6 @@ function getUDID() end
148
145
  **示例:**
149
146
 
150
147
  ```lua
151
- local device = require("device")
152
148
  -- 获取UDID
153
149
  local udid = device.getUDID()
154
150
  print("UDID = " .. tostring(udid))
@@ -170,7 +166,6 @@ function getDeviceName() end
170
166
  **示例:**
171
167
 
172
168
  ```lua
173
- local device = require("device")
174
169
  -- 获取设备名称
175
170
  local deviceName = device.getDeviceName()
176
171
  print("设备名称: " .. tostring(deviceName))
@@ -192,7 +187,6 @@ function getDeviceModel() end
192
187
  **示例:**
193
188
 
194
189
  ```lua
195
- local device = require("device")
196
190
  -- 获取设备型号
197
191
  local model = device.getDeviceModel()
198
192
  print("设备型号: " .. tostring(model))
@@ -222,7 +216,6 @@ function getScreenSize() end
222
216
  **示例:**
223
217
 
224
218
  ```lua
225
- local device = require("device")
226
219
  -- 获取屏幕尺寸
227
220
  local screenSize = device.getScreenSize()
228
221
  print("屏幕尺寸: " .. tostring(screenSize.width) .. " x " .. tostring(screenSize.height))
@@ -250,7 +243,6 @@ function getScreenRealSize() end
250
243
  **示例:**
251
244
 
252
245
  ```lua
253
- local device = require("device")
254
246
  -- 获取屏幕实际尺寸
255
247
  local screenRealSize = device.getScreenRealSize()
256
248
  print("屏幕实际尺寸: " .. tostring(screenRealSize.width) .. " x " .. tostring(screenRealSize.height))
@@ -272,7 +264,6 @@ function getScreenScale() end
272
264
  **示例:**
273
265
 
274
266
  ```lua
275
- local device = require("device")
276
267
  -- 获取屏幕缩放比例
277
268
  local scale = device.getScreenScale()
278
269
  print("屏幕缩放比例: " .. tostring(scale))
@@ -294,7 +285,6 @@ function getScreenBrightness() end
294
285
  **示例:**
295
286
 
296
287
  ```lua
297
- local device = require("device")
298
288
  -- 获取屏幕亮度
299
289
  local brightness = device.getScreenBrightness()
300
290
  print("屏幕亮度: " .. tostring(brightness))
@@ -325,7 +315,6 @@ function setScreenBrightness(brightness) end
325
315
  **示例:**
326
316
 
327
317
  ```lua
328
- local device = require("device")
329
318
  -- 设置屏幕亮度到 50%
330
319
  device.setScreenBrightness(0.5)
331
320
  ```
@@ -346,7 +335,6 @@ function getVolume() end
346
335
  **示例:**
347
336
 
348
337
  ```lua
349
- local device = require("device")
350
338
  -- 获取系统音量
351
339
  local volume = device.getVolume()
352
340
  print("系统音量: " .. tostring(volume))
@@ -377,7 +365,6 @@ function setVolume(volume) end
377
365
  **示例:**
378
366
 
379
367
  ```lua
380
- local device = require("device")
381
368
  -- 设置系统音量到 50%
382
369
  device.setVolume(0.5)
383
370
  ```
@@ -403,7 +390,6 @@ function getOrientation() end
403
390
  **示例:**
404
391
 
405
392
  ```lua
406
- local device = require("device")
407
393
  -- 获取屏幕方向
408
394
  local orientation = device.getOrientation()
409
395
  print("屏幕方向: " .. tostring(orientation))
@@ -427,7 +413,6 @@ function getOSVersion() end
427
413
  **示例:**
428
414
 
429
415
  ```lua
430
- local device = require("device")
431
416
  -- 获取系统版本
432
417
  local osVersion = device.getOSVersion()
433
418
  print("系统版本: iOS " .. tostring(osVersion))
@@ -449,7 +434,6 @@ function getLanIp() end
449
434
  **示例:**
450
435
 
451
436
  ```lua
452
- local device = require("device")
453
437
  -- 获取局域网IP
454
438
  local lanIp = device.getLanIp()
455
439
  print("局域网IP = " .. tostring(lanIp))
@@ -475,7 +459,6 @@ function vibrate(duration, intensity) end
475
459
  **示例:**
476
460
 
477
461
  ```lua
478
- local device = require("device")
479
462
  -- 基础振动
480
463
  device.vibrate(500, 0.5); -- 振动500ms,中等强度
481
464
  -- 不同强度的振动
@@ -1,5 +1,7 @@
1
1
  # 点阵 OCR 模块 (dotocr)
2
2
 
3
+ 模块表是内置全局 `dotocr`,直接调用即可。不要 `require` 宿主模块。
4
+
3
5
  点阵 OCR 模块基于图色工具生成的固定像素点阵字库,提供精确的文字识别与查找功能。字库保存在项目的 `res/fonts` 目录,使用前需先加载字库取得字库 ID,再复用该 ID 进行识别,使用完毕后释放。
4
6
 
5
7
  点阵模板按照制作时的原始像素尺寸匹配,不会自动缩放到其他分辨率。目标文字的字号、缩放比例或像素形状发生变化时,应制作对应的字库特征。
@@ -73,7 +75,6 @@ function loadFont(fontPath) end
73
75
  **示例:**
74
76
 
75
77
  ```lua
76
- local dotocr = require("dotocr")
77
78
  local fontId = dotocr.loadFont("/fonts/default.json")
78
79
  if not fontId then
79
80
  print("字库加载失败")
@@ -121,7 +122,6 @@ function recognizeAbs(fontId, input, x, y, ex, ey, confidenceThreshold) end
121
122
  **示例:**
122
123
 
123
124
  ```lua
124
- local dotocr = require("dotocr")
125
125
  local chars = dotocr.recognizeAbs(fontId, "screen", 100, 200, 600, 280, 0.95)
126
126
  print("识别数量: " .. tostring(#chars))
127
127
  if #chars > 0 then
@@ -173,7 +173,6 @@ function findTextAbs(fontId, input, targetTexts, x, y, ex, ey, confidenceThresho
173
173
  **示例:**
174
174
 
175
175
  ```lua
176
- local dotocr = require("dotocr")
177
176
  local hits = dotocr.findTextAbs(
178
177
  fontId,
179
178
  "screen",
@@ -208,7 +207,6 @@ function free(fontId) end
208
207
  **示例:**
209
208
 
210
209
  ```lua
211
- local dotocr = require("dotocr")
212
210
  if fontId then
213
211
  dotocr.free(fontId)
214
212
  print("字库 " .. tostring(fontId) .. " 资源已释放")
@@ -224,7 +222,6 @@ function freeAll() end
224
222
  **示例:**
225
223
 
226
224
  ```lua
227
- local dotocr = require("dotocr")
228
225
  dotocr.freeAll()
229
226
  print("所有点阵字库资源已释放")
230
227
  ```
@@ -1,5 +1,7 @@
1
1
  # 文件模块 (File)
2
2
 
3
+ 模块表是内置全局 `file`,直接调用即可。不要 `require` 宿主模块。
4
+
3
5
  文件模块提供了完整的文件和目录操作功能,包括文件的创建、读写、删除、复制等操作,以及目录的管理和遍历功能。
4
6
 
5
7
  ## 功能概览
@@ -41,7 +43,6 @@ function getInternalDir(type) end
41
43
  **示例:**
42
44
 
43
45
  ```lua
44
- local file = require("file")
45
46
  local documentsDir = file.getInternalDir("documents")
46
47
  local tempDir = file.getInternalDir("temp")
47
48
  print("文档目录: " .. tostring(documentsDir))
@@ -71,7 +72,6 @@ function mkdirs(path) end
71
72
  **示例:**
72
73
 
73
74
  ```lua
74
- local file = require("file")
75
75
  local success = file.mkdirs("/path/to/nested/directory")
76
76
  if success then
77
77
  print("目录创建成功")
@@ -103,7 +103,6 @@ function listDir(path, recursion) end
103
103
  **示例:**
104
104
 
105
105
  ```lua
106
- local file = require("file")
107
106
  -- 列出目录内容(不递归)
108
107
  local files = file.listDir("/path/to/directory", false)
109
108
  print("目录内容: " .. tostring(ToJsonString(files)))
@@ -137,7 +136,6 @@ function create(path) end
137
136
  **示例:**
138
137
 
139
138
  ```lua
140
- local file = require("file")
141
139
  local created = file.create("/path/to/newfile.txt")
142
140
  if created then
143
141
  print("文件创建成功")
@@ -167,7 +165,6 @@ function exists(path) end
167
165
  **示例:**
168
166
 
169
167
  ```lua
170
- local file = require("file")
171
168
  if file.exists("/path/to/file.txt") then
172
169
  print("文件存在")
173
170
  else
@@ -200,7 +197,6 @@ function copy(src, dest) end
200
197
  **示例:**
201
198
 
202
199
  ```lua
203
- local file = require("file")
204
200
  local copied = file.copy("/path/to/source.txt", "/path/to/destination.txt")
205
201
  if copied then
206
202
  print("文件复制成功")
@@ -230,7 +226,6 @@ function deleteAllFile(path) end
230
226
  **示例:**
231
227
 
232
228
  ```lua
233
- local file = require("file")
234
229
  local deleted = file.deleteAllFile("/path/to/file.txt")
235
230
  if deleted then
236
231
  print("文件删除成功")
@@ -262,7 +257,6 @@ function readFile(path) end
262
257
  **示例:**
263
258
 
264
259
  ```lua
265
- local file = require("file")
266
260
  local content = file.readFile("/path/to/file.txt")
267
261
  if content ~= nil then
268
262
  print("文件内容: " .. tostring(content))
@@ -299,7 +293,6 @@ function readResFile(fileName) end
299
293
  **示例:**
300
294
 
301
295
  ```lua
302
- local file = require("file")
303
296
  -- 读取配置文件
304
297
  local config = file.readResFile("config.json")
305
298
  if config ~= "" then
@@ -322,7 +315,6 @@ function getResFile(fileName) end
322
315
  **示例:**
323
316
 
324
317
  ```lua
325
- local file = require("file")
326
318
  local path = file.getResFile("model.bin")
327
319
  if path then
328
320
  file.cleanupResFile(path)
@@ -345,7 +337,6 @@ function cleanupResFile(path) end
345
337
  **示例:**
346
338
 
347
339
  ```lua
348
- local file = require("file")
349
340
  file.cleanupResFile(path)
350
341
  ```
351
342
 
@@ -374,7 +365,6 @@ function writeFile(path, content) end
374
365
  **示例:**
375
366
 
376
367
  ```lua
377
- local file = require("file")
378
368
  local success = file.writeFile("/path/to/file.txt", "Hello, World!")
379
369
  if success then
380
370
  print("文件写入成功")
@@ -406,7 +396,6 @@ function appendLine(path, content) end
406
396
  **示例:**
407
397
 
408
398
  ```lua
409
- local file = require("file")
410
399
  local appended = file.appendLine("/path/to/log.txt", "新的日志条目")
411
400
  if appended then
412
401
  print("内容追加成功")
@@ -440,7 +429,6 @@ function readLine(path, lineNo) end
440
429
  **示例:**
441
430
 
442
431
  ```lua
443
- local file = require("file")
444
432
  local firstLine = file.readLine("/path/to/file.txt", 1)
445
433
  if firstLine ~= nil then
446
434
  print("第一行内容: " .. tostring(firstLine))
@@ -472,7 +460,6 @@ function readAllLines(path) end
472
460
  **示例:**
473
461
 
474
462
  ```lua
475
- local file = require("file")
476
463
  local lines = file.readAllLines("/path/to/file.txt")
477
464
  if lines ~= nil then
478
465
  for index, line in ipairs(lines) do
@@ -510,7 +497,6 @@ function deleteLine(path, line, contains) end
510
497
  **示例:**
511
498
 
512
499
  ```lua
513
- local file = require("file")
514
500
  -- 删除第3行
515
501
  file.deleteLine("/path/to/file.txt", 3, nil)
516
502
  -- 删除包含"error"的行
@@ -544,7 +530,6 @@ function fileMD5(path) end
544
530
  **示例:**
545
531
 
546
532
  ```lua
547
- local file = require("file")
548
533
  local md5 = file.fileMD5("/path/to/file.txt")
549
534
  if md5 then
550
535
  print("文件MD5 = " .. tostring(md5))
@@ -655,7 +655,7 @@ print(ToJsonString({ a = 1, b = 2 }))
655
655
 
656
656
  ## 全局日志函数
657
657
 
658
- 全局日志函数是 `logger` 模块对应方法的便捷别名,可以直接调用而无需 `require("logger")`。可变参会按空格拼接为一行。级别和是否写文件仍由 `logger.setLoggerLevel` / `logger.setLogToFile` 控制。
658
+ 全局日志函数是 `logger` 模块对应方法的便捷别名,可以直接调用而无需再取模块表。可变参会按空格拼接为一行。级别和是否写文件仍由 `logger.setLoggerLevel` / `logger.setLogToFile` 控制。
659
659
 
660
660
  `print` 仍可用,默认走信息级别;需要调试 / 警告 / 错误级别时用下面这些函数。
661
661