Merge pull request #293 from devchat-ai/feat/endPoint

update endpoint judge
This commit is contained in:
Rankin Zheng 2023-08-31 22:43:43 -05:00 committed by GitHub
commit 91e91f08ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ export default function WechatTip() {
(message: { endPoint: string; accessKey: string; keyType: string }) => {
if (message.keyType === "DevChat" && message.accessKey) {
let url = "https://app.devchat.ai";
if (message.endPoint.includes("apptest.devchat.ai")) {
if (message.endPoint.includes("api-test.devchat.ai")) {
url = "https://apptest.devchat.ai";
setLink("https://test.devchat.ai");
} else {