Procházet zdrojové kódy

perf: 优化环境变量

zengkunsen před 4 měsíci
rodič
revize
82972e769d
5 změnil soubory, kde provedl 6 přidání a 3 odebrání
  1. 0 2
      .env
  2. 1 0
      .env.development
  3. 1 0
      .env.preview
  4. 2 1
      .env.production
  5. 2 0
      service/chargeStationService.tsx

+ 0 - 2
.env

@@ -1,5 +1,3 @@
-EXPO_PUBLIC_API_URL=https://charging.ayftech.xyz/api/v1 # This is the dummy url path
-EXPO_PUBLIC_API_IMG_URL=https://charging.ayftech.xyz/stationPic/
 accessSecret='xahAQ:EsWRLa_h2EA6VMmTtGsteC?ZMx'
 refreshSecret='%uhKNMX-tm#Xy*vLLm}1!2iGcV,EitPm'
 thirdId=192316877

+ 1 - 0
.env.development

@@ -1 +1,2 @@
 EXPO_PUBLIC_NODE_ENV=development
+EXPO_PUBLIC_API_URL=https://charging.ayftech.xyz/api/v1

+ 1 - 0
.env.preview

@@ -1 +1,2 @@
 EXPO_PUBLIC_NODE_ENV=perview
+EXPO_PUBLIC_API_URL=https://charging.ayftech.xyz/api/v1

+ 2 - 1
.env.production

@@ -1 +1,2 @@
-EXPO_PUBLIC_NODE_ENV=production
+EXPO_PUBLIC_NODE_ENV=production
+EXPO_PUBLIC_API_URL=https://api.crazycharge.com.hk

+ 2 - 0
service/chargeStationService.tsx

@@ -478,6 +478,8 @@ class ChargeStationService {
     }
 
     async fetchReservationHistories() {
+        const aa = await SecureStore.getItemAsync('accessToken')
+        console.log('iiiiiiiqqqqq', aa)
         try {
             const response = await axios.get(`${this.apiUrl}/clients/reservation/all`, {
                 headers: {