This commit is contained in:
邹宗楠
2025-08-01 17:27:24 +08:00
parent ec1dbde460
commit ad2b46b2cc
2 changed files with 6 additions and 1 deletions

View File

@@ -889,7 +889,10 @@ func GetIfReply(key string, keyDetail UserRelInfo) (flag bool) {
}
case VendorIDELMStr:
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 {
return true
}

View File

@@ -1,6 +1,7 @@
package controllers
import (
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"git.rosy.net.cn/baseapi/platformapi/dadaapi"
@@ -19,6 +20,7 @@ func (c *DadaDeliveryController) Msg() {
if c.Ctx.Input.Method() == http.MethodPost {
obj, callbackResponse := api.DadaAPI.GetOrderCallbackMsg(c.Ctx.Input.RequestBody)
if callbackResponse == nil {
globals.SugarLogger.Debugf("---------err := %s", utils.Format4Output(obj, false))
callbackResponse = dada.OnWaybillMsg(obj)
}
if callbackResponse != nil && callbackResponse.Code != 200 {