果园美团调试
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mtpsapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -64,6 +65,7 @@ func (a *API) CheckCallbackValidation(request *http.Request) (callbackResponse *
|
||||
err := request.ParseForm()
|
||||
if err == nil {
|
||||
sign := a.signParams(request.PostForm)
|
||||
fmt.Println("testCheckCallbackValidation", utils.Format4Output(request, false))
|
||||
if sign != request.FormValue(signKey) {
|
||||
baseapi.SugarLogger.Infof("Signature is not ok, mine:%v, get:%v", sign, request.FormValue(signKey))
|
||||
return SignatureIsNotOk
|
||||
|
||||
Reference in New Issue
Block a user