- AccessPlatformAPIWithRetry的回调handleResponse添加response参数

- 饿百从网页取门店健康信息
This commit is contained in:
gazebo
2019-06-11 16:39:52 +08:00
parent cae38a9a4c
commit eb009df26d
18 changed files with 261 additions and 32 deletions

View File

@@ -100,7 +100,7 @@ func (a *API) AccessAPI(action string, params map[string]interface{}, body strin
return request
},
a.config,
func(jsonResult1 map[string]interface{}) (result string, err error) {
func(response *http.Response, jsonResult1 map[string]interface{}) (result string, err error) {
var errInfo *ErrorInfo
// 微信的返回值,在错误与正常情况下,结构是完全不一样的
if errCode, ok := jsonResult1["errcode"]; ok {