Commercial baseurl (#697)

This commit is contained in:
Archer
2024-01-06 10:36:31 +08:00
committed by GitHub
parent dfa4c0831c
commit 84cc4baf21
44 changed files with 124 additions and 119 deletions

View File

@@ -1,5 +1,6 @@
import axios from 'axios';
import { MongoOutLink } from './schema';
import { FastGPTProUrl } from '../../common/system/constants';
export const updateOutLinkUsage = async ({
shareId,
@@ -30,7 +31,7 @@ export const pushResult2Remote = async ({
shareId?: string;
responseData?: any[];
}) => {
if (!shareId || !outLinkUid || !global.systemEnv?.pluginBaseUrl) return;
if (!shareId || !outLinkUid || !FastGPTProUrl) return;
try {
const outLink = await MongoOutLink.findOne({
shareId