panlei
2019-08-20 173ba382e4f383d7d5b72e4d58f8b576bc1762c7
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() {