- fix bug in jdapi.GetAfsService2
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
@@ -309,9 +311,11 @@ func (a *API) GetAfsService(orderId string) (map[string]interface{}, error) {
|
||||
func (a *API) GetAfsService2(afsOrderID string) (afsOrderInfo *AfsServiceResponse, err error) {
|
||||
result, err := a.GetAfsService(afsOrderID)
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result, &afsOrderInfo, false)
|
||||
if err = utils.Map2StructByJson(result, &afsOrderInfo, false); err != nil {
|
||||
baseapi.SugarLogger.Warnf("GetAfsService2, result:%s failed with error:%v", utils.Format4Output(result, true), err)
|
||||
}
|
||||
}
|
||||
return afsOrderInfo, nil
|
||||
return afsOrderInfo, err
|
||||
}
|
||||
|
||||
// 商家审核用户取消申请接口
|
||||
|
||||
Reference in New Issue
Block a user