Skip to content

Commit 20ef6b9

Browse files
committed
fix(huhobot.js): 修复回调转换字段名
修复 _Respone 方法中 callbackConvert 字段名错误, 应为 callbackConvertImg 并正确传递该配置值。
1 parent 6c1244c commit 20ef6b9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

huhobot.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
const UPDATEURL = "https://release.huhobot.txssb.cn/lse/HuHoBot-BDS-{VERSION}.js"
55
const LATESTURL = "https://release.huhobot.txssb.cn/lse/latest.json"
6-
const VERSION = "0.3.1"
6+
const VERSION = "0.3.2"
77
const CONFIG_VERSION = 5
88
const PLUGINNAME = 'HuHoBot'
99
const PATH = `plugins/${PLUGINNAME}/`
@@ -276,8 +276,8 @@ class FWebsocketClient {
276276
*/
277277
_Respone(msg, groupId, type, uuid = "") {
278278
let config = readFile(CONFIGPATH)
279-
let callbackConvert = config.callbackConvert;
280-
this._sendMsg(type, { msg: msg, group: groupId, callbackConvert }, uuid)
279+
let callbackConvertImg = config.callbackConvertImg;
280+
this._sendMsg(type, { msg: msg, group: groupId, callbackConvert: callbackConvertImg }, uuid)
281281
}
282282

283283
/**
@@ -375,6 +375,7 @@ class FWebsocketClient {
375375
* @returns
376376
*/
377377
_sendMsg(type, body, uuid = system.randomGuid()) {
378+
378379
if (this.WSC.status != 0 && this.isShakeHand) {
379380
//cb(null);
380381
return;

0 commit comments

Comments
 (0)