Commit 2a7f98b0 by 孙龙

up

parent 2354f43f
......@@ -26,6 +26,11 @@ func PushComUserInfoToErp(data string) (err error){
if err != nil{
return
}
if pushData.ComId == 0{
return
}
urlParams := url.Values{}
urlParams.Add("com_id",strconv.FormatInt(pushData.ComId,10))
urlParams.Add("user_id",strconv.FormatInt(pushData.UserId,10))
......
......@@ -39,7 +39,7 @@ func DispenseMsg(data string) (err error){
//分发
pushMsg.ComId = gjson.Parse(data).Get("data.id").Int()
if pushMsg.ComId == 0{
return
break
}
data,err := json.Marshal(&pushMsg)
if err == nil{
......@@ -58,7 +58,7 @@ func DispenseMsg(data string) (err error){
pushMsg.UserId = gjson.Parse(data).Get("data.user_id").Int()
pushMsg.SaleId = gjson.Parse(data).Get("data.sale_id").Int()
if pushMsg.ComId == 0{
return
break
}
data,err := json.Marshal(&pushMsg)
if err == nil{
......
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