银豹api错误返回

This commit is contained in:
苏尹岚
2020-03-26 14:34:07 +08:00
parent 4c745c648f
commit 32bb6e589e

View File

@@ -38,6 +38,11 @@ func (a *API) AccessStorePage(action string, bizParams map[string]interface{}) (
err = utils.NewErrorCode(jsonResult1["msg"].(string), "-1", 0)
baseapi.SugarLogger.Debugf("yinbao AccessStorePageAPI failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
}
} else {
errLevel = platformapi.ErrLevelGeneralFail
if strings.Contains(jsonResult1["fakeData"].(string), "登录") {
err = utils.NewErrorCode("银豹Cookie可能失效了", "-1", 0)
}
}
retVal = jsonResult1
}