This commit is contained in:
crusader 2018-04-17 19:24:06 +09:00
parent 761d497270
commit 108d2317b7

View File

@ -72,7 +72,7 @@ func ExecServices(services []interface{}, method ServiceMethodType, orderedTypes
i := _services[indexI] i := _services[indexI]
iv := reflect.ValueOf(i) iv := reflect.ValueOf(i)
m := iv.MethodByName(method.String()) m := iv.MethodByName(method.String())
rvs := m.Call([]reflect.Value{iv}) rvs := m.Call([]reflect.Value{})
if nil != rvs && 1 == len(rvs) && nil != rvs[0].Interface() { if nil != rvs && 1 == len(rvs) && nil != rvs[0].Interface() {
return rvs[0].Interface().(error) return rvs[0].Interface().(error)
} }