Selaa lähdekoodia

后端: 统一系统参数

baichengfei 4 vuotta sitten
vanhempi
commit
a3f8477d6a

+ 1 - 1
src/dashoo.cn/backend/api/business/iam/IamService.go

@@ -33,7 +33,7 @@ type iamResult struct {
 
 func (this *IamService) PostSendSysMsg(url string, params string, token string) *http.Response {
 	client := &http.Client{}
-	ip := utils.Cfg.MustValue("iam", "SendSysMsg")
+	ip := utils.Cfg.MustValue("Iam", "SendSysMsg")
 	req, err := http.NewRequest("POST", ip+url, strings.NewReader(params))
 	req.Header.Add("Content-Type", "application/json")
 	req.Header.Add("Authorization", "Bearer "+token)

+ 1 - 3
src/dashoo.cn/backend/api/conf/app.conf

@@ -82,9 +82,6 @@ BaseUrl=http://localhost:8081/api/acti
 
 ContrastExcel=http://weed1.labsop.cn:9390/1,03eb5b7a97b8b0
 
-[iam]
-# SendSysMsg=http://localhost:8090/api
-
 [bank]
 callbackHost=http://localhost:10091/api
 
@@ -96,6 +93,7 @@ ptrUrl=http://api.dgyt.petrochina/jcfw/ptr/v1.0/ptr
 
 [Iam]
 iamUrl=http://iam.api.dgyt.petrochina/api/iam/loginex
+#endSysMsg=http://localhost:8090/api
 
 [Invoice]
 invoiceUrl=http://localhost:10091/api/invoice/updateisinvoice