Browse Source

feat(预发布): 新增 惠融好借测试环境相关配置

qq12rrr 1 week ago
parent
commit
934bd069aa

+ 2 - 2
config/dev.js

@@ -6,8 +6,8 @@ module.exports = {
     ENV: '"DEVELOPMENT"',
     // "HOST": '"http://192.168.0.168:810"',
     // "HOST": '"http://loan-web-api2.internal.jiebide.xin"',
-    HOST: '"https://api.hrshuke.cn"',
-    APPID: '"458"',
+    HOST: '"https://loan-web-api2.internal.jiebide.xin"',
+    APPID: '"465"',
   },
   mini: {},
   h5: {},

+ 2 - 2
config/prod.js

@@ -5,9 +5,9 @@ module.exports = {
   defineConstants: {
     ENV: '"PRODUCTION"',
     // HOST: '"https://api.bicredit.xin"',
-    HOST: '"https://api.hrshuke.cn"',
+    HOST: '"https://loan-web-api2.internal.jiebide.xin"',
     // "HOST": '"http://192.168.0.168:810"',
-    APPID: '"458"',
+    APPID: '"465"',
   },
   mini: {},
   h5: {

+ 1 - 1
project.config.json

@@ -2,7 +2,7 @@
   "miniprogramRoot": "dist/",
   "projectname": "taro-pet",
   "description": "",
-  "appid": "wxc7ed88182aa77a68",
+  "appid": "wxaca93174bcaa6453",
   "setting": {
     "urlCheck": true,
     "es6": false,

+ 1 - 1
src/helper/userHelper.ts

@@ -13,7 +13,7 @@ export default class UserHelper {
    * @param code 小程序获取的Code
    * @param [channelCode] 渠道号
    */
-  public static async userWxLogin(code: string, channelCode: string = 'hrqbxcx') {
+  public static async userWxLogin(code: string, channelCode: string = 'hrhj001') {
 
     let result = await UserApi.wxLoginUsingGet({
       params: { code, channelCode },

+ 3 - 3
src/pages/home/index.tsx

@@ -51,7 +51,7 @@ const Home = () => {
 
   const channelResult: any = useRequest(() => {
     return UserApi.homeFetchChannel({
-      data: { channelCode: "hrqbxcx", refer: "" },
+      data: { channelCode: "hrhj001", refer: "" },
     })
       .toData()
       .then((res) => {
@@ -97,7 +97,7 @@ const Home = () => {
   };
 
   const carLoanFlowHandler = async () => {
-    const DEFAULT_CHANNEL_CODE = 'hrqbxcx'
+    const DEFAULT_CHANNEL_CODE = 'hrhj001'
 
     const url = 'https://m1.h5.hrshuke.cn/carv2/' + (channelCode || DEFAULT_CHANNEL_CODE)
     RouteUtil.toWebViewPage({
@@ -198,7 +198,7 @@ const Home = () => {
               // rowGap={24}
               className="index-back-content"
             >
-              <Label className="index-back-se">最高可申请(元)</Label>
+              <Label className="index-back-se">预发布最高可申请(元)</Label>
               <Label className="index-back-amount">200,000.00</Label>
               <View className="index-back-tip">具体额度以资金方审批为准</View>
               <Flex

+ 3 - 3
src/pages/user/components/LoginBox.tsx

@@ -102,7 +102,7 @@ const LoginBox = forwardRef((props, ref) => {
     const appId = appInfo.appId;
 
     switch (appId) {
-      case "wxc7ed88182aa77a68":
+      case "wxaca93174bcaa6453":
         appName = "惠融钱包";
         break;
       case "wxf7762282683395d1":
@@ -188,7 +188,7 @@ const LoginBox = forwardRef((props, ref) => {
       setIsGetValidate(!isGetValidate);
       setTime(60); // 重置倒计时
       let obj = {
-        channelCode: channelCode || "hrqbxcx",
+        channelCode: channelCode || "hrhj001",
         phone: ctyptoUtil.AesEncode(phone),
         sceneType: "register",
       };
@@ -247,7 +247,7 @@ const LoginBox = forwardRef((props, ref) => {
       return;
     }
     let obj = {
-      channelCode: channelCode || "hrqbxcx",
+      channelCode: channelCode || "hrhj001",
       phone: ctyptoUtil.AesEncode(phone),
       sceneType: "register",
       uctrackid: "",