- add PendingUnitPrice and PendingOpType in GetStoreSkus result, when param isGetOpRequest is true
- fix some API result to lower camel case
This commit is contained in:
@@ -394,3 +394,18 @@ func BatchStr2Time(strTime ...string) (timeList []time.Time, err error) {
|
||||
func IsTimeEmpty(timeValue time.Time) bool {
|
||||
return (timeValue == utils.DefaultTimeValue || timeValue == utils.ZeroTimeValue)
|
||||
}
|
||||
|
||||
// strAndObjAddPairs必须按字符串1,转换地址1,字符串2,转换地址2这样的格式传递
|
||||
func Strings2Objs(strAndObjAddPairs ...interface{}) (err error) {
|
||||
str := ""
|
||||
for k, v := range strAndObjAddPairs {
|
||||
if k%2 == 0 {
|
||||
str, _ = v.(string)
|
||||
} else if str != "" {
|
||||
if err = utils.UnmarshalUseNumber([]byte(str), v); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user