Browse Source

2024.03.22
- 更新测试环境路径

zweiqin 1 year ago
parent
commit
4cc6654460
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/api/index.js

+ 4 - 3
src/api/index.js

@@ -10,7 +10,8 @@
 import home from './home'
 
 // 获取当前环境变量 true => 生产环境 false => 开发环境
-const BASEURL = (process.env.NODE_ENV === 'production') ? 'https://nsappapi.tuanfengkeji.cn' : '/api'
+// const BASEURL = (process.env.NODE_ENV === 'production') ? 'https://nsappapi.tuanfengkeji.cn' : '/api'
+const BASEURL = (process.env.NODE_ENV === 'production') ? 'https://nsappapitest.tuanfengkeji.cn' : '/api' // 测试环境
 
 // 识别证件号的根路径
 const CARDURL = `https://www.zhult.com/samrtWorker/api`
@@ -35,7 +36,7 @@ export const api = {
   subsidiaryCompanyCheck: `${BASEURL}/check/agentCheck`,
   getCategoryList: `${BASEURL}/shopCategory/getShopCategoryLevel`,
   getChildCategoryList: `${BASEURL}/shopCategory/getShopCategorySon`,
-  cardRecognition:`${CARDURL}/third/ocr/idOcr`, // 身份证识别
-  businessRecognition:`${CARDURL}/third/ocr/baiduBusinessLicense`, // 营业执照识别
+  cardRecognition: `${CARDURL}/third/ocr/idOcr`, // 身份证识别
+  businessRecognition: `${CARDURL}/third/ocr/baiduBusinessLicense` // 营业执照识别
 }
 export default api