wuroy.eth 3 dní pred
rodič
commit
5541f18579

+ 5 - 7
internal/pkg/wechat_ws/wechat_ws_client.go

@@ -8,8 +8,6 @@ import (
 	"github.com/zeromicro/go-zero/core/logx"
 	"google.golang.org/protobuf/encoding/protojson"
 	"google.golang.org/protobuf/types/known/anypb"
-	"net/http"
-	"net/url"
 	"time"
 	"wechat-api/workphone"
 )
@@ -48,11 +46,11 @@ func NewWechatWsClient(urlStr string, name string, ctype string) (*WechatWsClien
 	//p, _ := url.Parse("http://127.0.0.1:7897")
 
 	var d = websocket.Dialer{
-		Proxy: http.ProxyURL(&url.URL{
-			Scheme: "http", // or "https" depending on your proxy
-			Host:   "127.0.0.1:7897",
-			Path:   "/",
-		}),
+		//Proxy: http.ProxyURL(&url.URL{
+		//	Scheme: "http", // or "https" depending on your proxy
+		//	Host:   "127.0.0.1:7897",
+		//	Path:   "/",
+		//}),
 	}
 
 	c, _, err := d.Dial(urlStr, nil)