瀏覽代碼

去掉代理配置

wuroy.eth 1 月之前
父節點
當前提交
5541f18579
共有 1 個文件被更改,包括 5 次插入7 次删除
  1. 5 7
      internal/pkg/wechat_ws/wechat_ws_client.go

+ 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)