chenjj 3 달 전
부모
커밋
180f9ed554
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      api/version.js

+ 7 - 0
api/version.js

@@ -5,6 +5,13 @@ import config from '@/config'
 const baseUrl = config.baseUrl
 export function getVersion(version) {
     return new Promise((resolve, reject) => {
+      if(uni.getAccountInfoSync().miniProgram.envVersion === 'develop'){
+        resolve({
+          data:{
+            serviceUrl: baseUrl
+          }
+        })
+      }
         uni.request({
           method: 'GET',
           timeout: 600000,