panlei
2019-11-13 33804d4591d5021b4dec1da5f5152422282409c6
algorithm/middleware/middleware.go
@@ -14,7 +14,7 @@
   "time"
)
func Entrance (args *structure.SdkDatas,groupRule protomsg.GroupRule,lable *structure.Others,message *protomsg.SdkMessage) (bool,string,string){
func Entrance (args *structure.SdkDatas,groupRule protomsg.GroupRule,lable *structure.Others,message *protomsg.SdkMessage) (bool,[]*structure.Arg,string,string){
   resultSplice := []*structure.LittleRuleResult{}
   sdkNames := ""
   polygonId := ""
@@ -214,9 +214,9 @@
         panic("规则有误,得到的数学公式不可解析")
      }
      result, _ := expression.Evaluate(nil) // 得到数学公式的结果
      return result.(bool),sdkNames,polygonId
      return result.(bool),nil,sdkNames,polygonId
   } else {
      return false,sdkNames,polygonId
      return false,nil,sdkNames,polygonId
   }
}