瀏覽代碼

后端: 统一系统参数

baichengfei 4 年之前
父節點
當前提交
a3f8477d6a
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 1
      src/dashoo.cn/backend/api/business/iam/IamService.go
  2. 1 3
      src/dashoo.cn/backend/api/conf/app.conf

+ 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