|
@@ -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
|