This commit is contained in:
richboo111
2022-11-22 15:35:11 +08:00
parent e25d2f5896
commit fae0091a85

View File

@@ -1103,6 +1103,7 @@ func (p *PurchaseHandler) GetSkus(ctx *jxcontext.Context, vendorOrgCode string,
func ToMap(actual interface{}) (map[string]string, error) {
var res []string
value := reflect.ValueOf(actual)
globals.SugarLogger.Debugf("value.Kind()=========%s", value.Kind())
if value.Kind() != reflect.Map {
return nil, errors.New("parse error")
}