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