diff --git a/app/components/home.tsx b/app/components/home.tsx index f9a1b2709..296455290 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -675,7 +675,7 @@ export function Home() { } const goApply = () => { - location.href = `${process.env.APPLY_URL}#/process/create-ticket?processId=117`; + location.href = `//work-order.zhiketong.net/#/process/create-ticket?processId=117`; }; console.log('render', { isAllow, isRequestErr, isW:isWorkWechat()}); diff --git a/app/requests.ts b/app/requests.ts index c338aa65e..a37feaf06 100644 --- a/app/requests.ts +++ b/app/requests.ts @@ -43,7 +43,7 @@ function getHeaders() { } export function validUser(signature: String) { - return fetch(`${process.env.API_URL}check_user_white/?signature=${signature}`) + return fetch(`//uc.zhiketong.net/api/check_user_white/?signature=${signature}`) .then((response) => response.json()) .then((data) => { return { diff --git a/scripts/setup.sh b/scripts/setup.sh index 6cd8e74f3..63a28bf09 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -57,10 +57,8 @@ yarn install # Prompt user for environment variables read -p "Enter OPENAI_API_KEY: " OPENAI_API_KEY -read -p "Enter APPLY_URL: " APPLY_URL -read -p "Enter API_URL: " API_URL read -p "Enter CODE: " CODE read -p "Enter PORT: " PORT # Build and run the project using the environment variables -OPENAI_API_KEY=$OPENAI_API_KEY APPLY_URL=$APPLY_URL API_URL=$API_URL CODE=$CODE PORT=$PORT yarn build && APPLY_URL=$APPLY_URL OPENAI_API_KEY=$OPENAI_API_KEY API_URL=$API_URL CODE=$CODE PORT=$PORT yarn start +OPENAI_API_KEY=$OPENAI_API_KEY CODE=$CODE PORT=$PORT yarn build && OPENAI_API_KEY=$OPENAI_API_KEY CODE=$CODE PORT=$PORT yarn start