diff --git a/internal/biz/router_test.go b/internal/biz/router_test.go index f0647f8..a1bf5c0 100644 --- a/internal/biz/router_test.go +++ b/internal/biz/router_test.go @@ -61,6 +61,14 @@ func Test_ProductLog(t *testing.T) { t.Log(err) } +func Test_ZltxStatistics(t *testing.T) { + routerBiz := in() + ch := make(chan entitys.ResponseData, 5) + defer close(ch) + err := routerBiz.handleTask(ch, nil, &entitys.Match{Index: "order_diagnosis", Parameters: `{"number":"15583730896"}`}, &model.AiTask{Config: `{"tool": "zltxOrderStatistics", "param": {"type": "object", "optional": [], "required": ["number"], "properties": {"number": {"type": "string", "description": "充值账号/分销商ID"}}}}`}) + t.Log(err) +} + func in() *AiRouterBiz { modDir, err := getModuleDir()