@@ -96,6 +96,9 @@ func infusionIdentity(r *ghttp.Request, entId int64, userId, phone, appId string
newBody := map[string]interface{}{}
logs.GInfo.Debug(r.GetCtx(), "请求内容-req", string(r.GetBody()))
_ = json.Unmarshal(r.GetBody(), &newBody)
+ if len(newBody) == 0 {
+ r.Request.Header.Set("Content-Type", "application/json")
+ }
newBody["userId"] = userId
newBody["entId"] = entId
newBody["phone"] = phone