! 饿百API对于门店商品批处理的返回结果发生改变,部分失败时返回错误(之前除了改价,返回的是成功),详情是错误信息中(之前在Data中)
This commit is contained in:
@@ -79,3 +79,10 @@ func IsErrMatch(err error, strCode string, strList []string) (isMatch bool) {
|
||||
}
|
||||
return isMatch
|
||||
}
|
||||
|
||||
func GetErrMsg(err error) (errMsg string) {
|
||||
if errExt, ok := err.(*ErrorWithCode); ok {
|
||||
errMsg = errExt.ErrMsg()
|
||||
}
|
||||
return errMsg
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user