diff --git a/client.go b/client.go index 25ef447..45f0d08 100644 --- a/client.go +++ b/client.go @@ -100,7 +100,7 @@ func (l *Label) SetContentConditionFromFile(jsScriptFile string) { } l.conditionlock.Lock() defer l.conditionlock.Unlock() - log.Println(string(data)) + // log.Println(string(data)) l.conditionJS = string(data) } diff --git a/client_test.go b/client_test.go index 566f0c3..122fa62 100644 --- a/client_test.go +++ b/client_test.go @@ -17,13 +17,14 @@ func TestPort(t *testing.T) { log.Println(cxt.TaskID, cxt.Content, cxt.Carry) } }) + ltest.SetContentConditionFromFile("example.js") cli.Connect() - log.Println(ltest.Open("https://playerduo.com/api/playerDuo-service-v2/rip113?lang=en&deviceType=browser", nil)) - log.Println(ltest.Open("https://playerduo.com/api/playerDuo-service-v2/yanngu?lang=en&deviceType=browser", "213")) + // log.Println(ltest.Open("https://playerduo.com/api/playerDuo-service-v2/rip113?lang=en&deviceType=browser", nil)) + // log.Println(ltest.Open("https://playerduo.com/api/playerDuo-service-v2/yanngu?lang=en&deviceType=browser", "213")) // log.Println(ltest.Open("https://playerduo.com/api/playerDuo-service-v2/rip113?lang=en&deviceType=browser")) // log.Println(ltest.Open("https://playerduo.com/api/playerDuo-service-v2/yanngu?lang=en&deviceType=browser")) - http.ListenAndServe(":42311", nil) + http.ListenAndServe(":4233", nil) } func TestChrome(t *testing.T) {