xujing 5 lat temu
rodzic
commit
82c0530b15
2 zmienionych plików z 8 dodań i 7 usunięć
  1. 4
    4
      config/prod.js
  2. 4
    3
      src/pages/project/h5Page.js

+ 4
- 4
config/prod.js Wyświetl plik

@@ -3,10 +3,10 @@ module.exports = {
3 3
     NODE_ENV: '"production"'
4 4
   },
5 5
   defineConstants: {
6
-    // HOST: '"https://dev.fangdeal.cn"', //测试
7
-    // WSS_HOST: '"wss://dev.fangdeal.cn"',
8
-    HOST: '"https://wx.fangdeal.cn"', //正式
9
-    WSS_HOST: '"wss://wx.fangdeal.cn"',
6
+    HOST: '"https://dev.fangdeal.cn"', //测试
7
+    WSS_HOST: '"wss://dev.fangdeal.cn"',
8
+    // HOST: '"https://wx.fangdeal.cn"', //正式
9
+    // WSS_HOST: '"wss://wx.fangdeal.cn"',
10 10
     OSS_PATH: "https://njcj.oss-cn-shanghai.aliyuncs.com/",
11 11
     OSS_FAST_PATH: "https://njcj.oss-accelerate.aliyuncs.com/",
12 12
     Version: "V3.5.28"

+ 4
- 3
src/pages/project/h5Page.js Wyświetl plik

@@ -482,7 +482,7 @@ export default class Index extends Component {
482 482
     const consultant = person.personType == ROLE_CODE["CONSULTANT"] ? person.personId : consultant1;
483 483
     const consultantId = person.personType == ROLE_CODE["CONSULTANT"] ? person.userId : consultantId1;
484 484
     console.log(this.props, "this.propsthis.propsthis.propsthis.props")
485
-    const firstShare = this.$router.params.firstShare || person.personId;
485
+    const firstShare = this.$router.params.firstShare || person.personId || '';
486 486
     const webUrlParams = [
487 487
       `personId=${person.personId}`,
488 488
       `recommender=${person.personId}`,
@@ -491,8 +491,9 @@ export default class Index extends Component {
491 491
       `consultant=${consultant}`,
492 492
       `consultantId=${consultantId}`,
493 493
       `firstShare=${firstShare}`,
494
-      `orgId=${person.orgId}`,
495
-      `miniappId=${person.miniappId}`,
494
+      `orgId=${person.orgId || ''}`,
495
+      `miniappId=${person.miniappId || ''}`,
496
+      `mpAppid=${pageInfo.mpAppid || ''}`,
496 497
       `codeParams=${encodeURIComponent(mergeQueryParams(webParams || '', codeParams["__raw"]))}`
497 498
     ].join("&");
498 499