diff --git a/cmd/channel_http_test.go b/cmd/channel_http_test.go index 498c2a2..ab1bcd9 100644 --- a/cmd/channel_http_test.go +++ b/cmd/channel_http_test.go @@ -155,7 +155,8 @@ func TestChannelHTTPListsMetricsOptionsAndAtomicCreation(t *testing.T) { t.Fatal("上级未获取下级正常绑定") } body := `{"sourceDb":"lx","platformBusierId":"14","account":"中文渠道","password":"demo123","registerType":1}` - created := call(8, "POST", "/sw/promote", body, 0).(map[string]any) + call(8, "POST", "/sw/promote", body, 7) + created := call(9, "POST", "/sw/promote", body, 0).(map[string]any) if created["sourceDb"] != "lx" { t.Fatal("返回平台丢失") } @@ -167,7 +168,7 @@ func TestChannelHTTPListsMetricsOptionsAndAtomicCreation(t *testing.T) { if persisted.Status != -3 || persisted.PromoteLevel != 1 || persisted.Password != "###eef6d9b7160f32a869f3e03b7ea575a5" { t.Fatalf("源平台创建不兼容: %+v", persisted) } - call(8, "POST", "/sw/promote", body, 7) + call(9, "POST", "/sw/promote", body, 7) call(99, "POST", "/sw/promote", body, 7) list(8, "", 2) call(8, "GET", "/sw/promote/game-distribution?sourceDb=hw&promoteId=100", "", 7)