diff --git a/platformapi/ebaiapi/ebaiapi.go b/platformapi/ebaiapi/ebaiapi.go index 1220b8e9..d51071aa 100644 --- a/platformapi/ebaiapi/ebaiapi.go +++ b/platformapi/ebaiapi/ebaiapi.go @@ -22,7 +22,8 @@ const ( ) const ( - ResponseCodeSuccess = 0 + ResponseCodeSuccess = 0 + ResponseCodeCallElmFailed = 2101 // 这个可以尝试重试 ) const ( diff --git a/platformapi/ebaiapi/store_page.go b/platformapi/ebaiapi/store_page.go index 3836a26e..d159d7fb 100644 --- a/platformapi/ebaiapi/store_page.go +++ b/platformapi/ebaiapi/store_page.go @@ -78,6 +78,9 @@ func (a *API) AccessStorePage(subURL string) (retVal map[string]interface{}, err return platformapi.ErrLevelSuccess, nil } newErr := utils.NewErrorIntCode(jsonResult1["errmsg"].(string), code) + if code == ResponseCodeCallElmFailed { + return platformapi.ErrLevelRecoverableErr, newErr + } baseapi.SugarLogger.Debugf("ebai AccessStorePage failed, jsonResult1:%s", utils.Format4Output(jsonResult1, true)) return platformapi.ErrLevelCodeIsNotOK, newErr }) @@ -173,6 +176,7 @@ func (a *API) GetEleCommentList(fromTime, toTime time.Time, shopID, supplierID s for _, orderComment := range commentMap["order_commentList"].([]interface{}) { orderCommentMap := orderComment.(map[string]interface{}) orderCommentMap["order_id"] = commentMap["order_id"] + orderCommentMap["shop_id"] = commentMap["shop_id"] commentList = append(commentList, orderComment.(map[string]interface{})) } }