Procházet zdrojové kódy

Merge branch 'develop' into lmm1

seimin před 7 měsíci
rodič
revize
0c74097ead

+ 5 - 0
src/app/views/wechat-config/wechat-config.component.ts

@@ -69,6 +69,9 @@ export class WechatConfigComponent implements OnInit {
69 69
       return;
70 70
     }
71 71
     const postData = {
72
+			...this.configData,
73
+			agentId: this.validateForm.controls.agentid.value,
74
+			appId: this.validateForm.controls.appid.value,
72 75
       id: this.id,
73 76
       appSecret: this.validateForm.controls.secret.value,
74 77
       createUser:
@@ -97,12 +100,14 @@ export class WechatConfigComponent implements OnInit {
97 100
     );
98 101
   }
99 102
   // 获取微信配置
103
+	configData:any;
100 104
   getWechatConfig() {
101 105
     const postData = { idx: 0, sum: 1 };
102 106
     this.mainService
103 107
       .getFetchDataList("simple/data", "wechatConfig", postData)
104 108
       .subscribe((result) => {
105 109
         if (result.status == 200) {
110
+					this.configData = result.list[0];
106 111
           const config = result.list[0];
107 112
           if (!config) {
108 113
             this.loading1 = false;