panlei
2019-08-29 33606536203d2177f1c72373ae491776e3e359b1
ruleserver/ruleToformula.go
@@ -140,7 +140,7 @@
}
func CallMiddleware(args *structure.SdkDatas,rule protomsg.GroupRule) ([]*structure.LittleRuleResult, string, string){
   p,err :=  plugin.Open("./algorithm/middleware")
   p,err :=  plugin.Open("./algorithm/middleware.so")
   if err != nil {
      panic(err)
   }
@@ -148,8 +148,8 @@
   if err1 != nil {
      panic("没有找到中间件入口函数")
   }
   _,_,_ := f.(func(args *structure.SdkDatas,rule protomsg.GroupRule)([]*structure.LittleRuleResult, string, string))(args,rule)
   return nil,"",""
   a,b,c := f.(func(args *structure.SdkDatas,rule protomsg.GroupRule)([]*structure.LittleRuleResult, string, string))(args,rule)
   return a,b,c
}
func RunRule(args *structure.SdkDatas, groupRule *protomsg.GroupRule, taskId string, message *protomsg.SdkMessage, label structure.Others) bool {
   defer func() {