Commit ec930826 by 朱继来

调整post参数

parent 9cd1d6b0
......@@ -66,7 +66,9 @@ func SendPurchaseEmail(data string) (err error) {
// 推送ERP
api_url := util.Configs.Api_domain.ApiUrl + "order/sysiteminfo"
params := "order_id="+strconv.Itoa(order_id)
api_header_map := make(map[string]string, 0)
api_header_map := map[string]string{
"Content-Type": "application/x-www-form-urlencoded",
}
err = http_post(api_url, params, api_header_map)
......@@ -108,6 +110,10 @@ func http_post(url string, data string, header map[string]string) (err error) {
return err
}
if res.Errcode != 0 {
logger.Info(res.Errmsg) // 记录错误信息
}
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment