- change jdapi params type from map[string]string to map[string]interface{}.

This commit is contained in:
gazebo
2018-06-21 16:15:51 +08:00
parent 0289f26a8a
commit e0ce7a1c29
4 changed files with 27 additions and 27 deletions

View File

@@ -57,7 +57,7 @@ func (j *JDAPI) unmarshalData(strData string, msg interface{}) (callbackResponse
}
func (j *JDAPI) CheckCallbackValidation(request *http.Request) (callbackResponse *JDCallbackResponse) {
mapData := make(map[string]string)
mapData := make(map[string]interface{})
mapData["token"] = request.FormValue("token")
mapData["app_key"] = request.FormValue("app_key")
mapData["timestamp"] = request.FormValue("timestamp")