Browse Source

Merge branch 'develop' into lmm1

seimin 7 months ago
parent
commit
0c74097ead
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/app/views/wechat-config/wechat-config.component.ts

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

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