ebai store page 逻辑调整
This commit is contained in:
@@ -351,7 +351,11 @@ func (a *API) AccessStorePage2(subURL string, params map[string]interface{}, isP
|
||||
}
|
||||
retVal = jsonResult1
|
||||
if jsonResult1["errno"] == nil {
|
||||
baseapi.SugarLogger.Warnf("ebai AccessStorePage2, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
||||
if jsonResult1[platformapi.KeyData] == nil {
|
||||
baseapi.SugarLogger.Warnf("ebai AccessStorePage2, jsonResult1:%s", utils.Format4Output(jsonResult1, true))
|
||||
} else {
|
||||
return platformapi.ErrLevelRecoverableErr, fmt.Errorf("%s return not json", subURL)
|
||||
}
|
||||
}
|
||||
code := int(utils.MustInterface2Int64(jsonResult1["errno"]))
|
||||
if code == ResponseCodeSuccess {
|
||||
@@ -384,7 +388,9 @@ func (a *API) AccessStorePage(subURL string, params map[string]interface{}, isPo
|
||||
func (a *API) GetRealMobile4Order(orderId string) (mobile string, err error) {
|
||||
retVal, err := a.GetStoreOrderInfo(orderId)
|
||||
if err == nil {
|
||||
return retVal["order_basic"].(map[string]interface{})["user_phone_call"].(string), nil
|
||||
if orderBasic, ok := retVal["order_basic"].(map[string]interface{}); ok {
|
||||
return utils.Interface2String(orderBasic["user_phone_call"]), nil
|
||||
}
|
||||
}
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user