From d606d5b7567ffef10649b4ae9f6cbe09f676f055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 5 Dec 2023 09:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdapi/callback.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/platformapi/jdapi/callback.go b/platformapi/jdapi/callback.go index 688a566a..9b867e9d 100644 --- a/platformapi/jdapi/callback.go +++ b/platformapi/jdapi/callback.go @@ -2,7 +2,6 @@ package jdapi import ( "git.rosy.net.cn/baseapi" - "git.rosy.net.cn/jx-callback/globals" "io/ioutil" "net/http" "strings" @@ -269,17 +268,7 @@ func GetCallbackMsg(request *http.Request) (callbackMsg *CallbackMsg, mapData ma return nil, nil, FormatErrorResponse } mapData = utils.URLValues2Map(values) - if msgURL == "storeCrud" { - globals.SugarLogger.Debugf("==============data := %s", string(data)) - globals.SugarLogger.Debugf("==============msgURL := %s", msgURL) - globals.SugarLogger.Debugf("==============mapData := %s", utils.Format4Output(mapData, false)) - globals.SugarLogger.Debugf("==============msgURL := %s", msgURL) - } - if err = utils.Map2StructByJson(mapData, &callbackMsg, false); err == nil { - if msgURL == "storeCrud" { - globals.SugarLogger.Debugf("==============callbackMsg := %s", utils.Format4Output(callbackMsg, false)) - } callbackMsg.MsgURL = msgURL if msgURL == CallbackMsgPushDeliveryStatus { var deliveryMsg *CallbackDeliveryStatusMsg @@ -314,10 +303,7 @@ func GetCallbackMsg(request *http.Request) (callbackMsg *CallbackMsg, mapData ma } } } - if err != nil { - globals.SugarLogger.Debugf("err========================:= %v", err) - return nil, nil, Err2CallbackResponse(err, "") - } + return callbackMsg, mapData, callbackResponse } func (a *API) CheckCallbackValidation(mapData map[string]interface{}, signInData string) (callbackResponse *CallbackResponse) {