Skip to content

Commit

Permalink
🐛 fix: 修正动态链路的命中逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 17, 2023
1 parent 1cd882c commit 525654f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const config = require('@lobehub/lint').eslint;

config.rules['no-extra-boolean-cast'] = 0;

module.exports = config;
4 changes: 2 additions & 2 deletions api/v1/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export default async (req: Request) => {

const item = manifest.plugins.find((i) => i.name === name);

// 先通过插件资产路径查询
if (item) {
// 先通过插件资产 endpoint 路径查询
if (!!item?.runtime.endpoint) {
const res = await fetch(item.runtime.endpoint, { body: args, method: 'post' });
const data = await res.text();
console.log(`[${name}]`, args, `result:`, data.slice(0, 3600));
Expand Down

0 comments on commit 525654f

Please sign in to comment.