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