feat: 完善小组绩效与有效端统计并修复审查问题
This commit is contained in:
@@ -138,7 +138,7 @@ func TestBusinessHTTPListWithSystemOnlyAndCompleteDatabase(t *testing.T) {
|
||||
}
|
||||
return value
|
||||
}
|
||||
created := call("POST", "/sw/business", `{"userName":"http_child","realName":"接口测试","password":"abc123"}`, "")["data"].(map[string]any)
|
||||
created := call("POST", "/sw/business", `{"userName":"http_child","realName":"接口测试","password":"abc123","hireDate":"2026-11-01"}`, "")["data"].(map[string]any)
|
||||
channels := call("GET", "/sw/business/2/promotes", "", "")["data"].(map[string]any)
|
||||
if channels["total"] != float64(1) || channels["rows"].([]any)[0].(map[string]any)["promoteName"] != "测试渠道" {
|
||||
t.Fatalf("HTTP 旗下渠道范围错误: %+v", channels)
|
||||
|
||||
Reference in New Issue
Block a user