tomap
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user