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 525654f commit beb14eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async (req: Request) => {
const item = manifest.plugins.find((i) => i.name === name);

// 先通过插件资产 endpoint 路径查询
if (!!item?.runtime.endpoint) {
if (!!item?.runtime.endpoint && item.runtime.endpoint.startsWith('https://')) {
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 beb14eb

Please sign in to comment.