1
This commit is contained in:
@@ -889,7 +889,10 @@ func GetIfReply(key string, keyDetail UserRelInfo) (flag bool) {
|
|||||||
}
|
}
|
||||||
case VendorIDELMStr:
|
case VendorIDELMStr:
|
||||||
elm := lastMsg.MsgContent.(map[string]interface{})
|
elm := lastMsg.MsgContent.(map[string]interface{})
|
||||||
s := elm["payLoad"].(map[string]interface{})["senderId"].(string)
|
s := ""
|
||||||
|
if elm["payLoad"].(map[string]interface{})["senderId"] != nil {
|
||||||
|
s = elm["payLoad"].(map[string]interface{})["senderId"].(string)
|
||||||
|
}
|
||||||
if s == "" || s[:2] == ebaiapi.SenderTypeBusiness || s[:2] == ebaiapi.SenderTypeChainedAccountLogin || s[:2] == ebaiapi.SenderTypeSystem {
|
if s == "" || s[:2] == ebaiapi.SenderTypeBusiness || s[:2] == ebaiapi.SenderTypeChainedAccountLogin || s[:2] == ebaiapi.SenderTypeSystem {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/dadaapi"
|
"git.rosy.net.cn/baseapi/platformapi/dadaapi"
|
||||||
@@ -19,6 +20,7 @@ func (c *DadaDeliveryController) Msg() {
|
|||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
obj, callbackResponse := api.DadaAPI.GetOrderCallbackMsg(c.Ctx.Input.RequestBody)
|
obj, callbackResponse := api.DadaAPI.GetOrderCallbackMsg(c.Ctx.Input.RequestBody)
|
||||||
if callbackResponse == nil {
|
if callbackResponse == nil {
|
||||||
|
globals.SugarLogger.Debugf("---------err := %s", utils.Format4Output(obj, false))
|
||||||
callbackResponse = dada.OnWaybillMsg(obj)
|
callbackResponse = dada.OnWaybillMsg(obj)
|
||||||
}
|
}
|
||||||
if callbackResponse != nil && callbackResponse.Code != 200 {
|
if callbackResponse != nil && callbackResponse.Code != 200 {
|
||||||
|
|||||||
Reference in New Issue
Block a user