@gecho-ai/gecho-bridge 1.1.3 → 1.1.4
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/package.json +1 -1
- package/server.js +1 -6
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -186,15 +186,10 @@ const server = http.createServer(async (req, res) => {
|
|
|
186
186
|
// 通用透传逻辑:将 payload 中的所有参数(除去 action)作为 params 传给插件
|
|
187
187
|
const { action: _a, ...params } = payload;
|
|
188
188
|
|
|
189
|
-
// 🐷 兼容层:如果插件版本较旧,识别不了 tiktok_search,则映射回 search
|
|
190
|
-
let finalAction = action;
|
|
191
|
-
if (action === "tiktok_search") finalAction = "search";
|
|
192
|
-
if (action === "tiktok_insight") finalAction = "search";
|
|
193
|
-
|
|
194
189
|
extensionSocket.send(JSON.stringify({
|
|
195
190
|
method: "execute_action",
|
|
196
191
|
params: {
|
|
197
|
-
action:
|
|
192
|
+
action: action,
|
|
198
193
|
params: params
|
|
199
194
|
},
|
|
200
195
|
requestId: requestId
|