Browse Source

更改个微工作手机通道为测试环境

boweniac 1 day ago
parent
commit
2cddac6f1c
3 changed files with 3 additions and 3 deletions
  1. 1 1
      hook/init.go
  2. 1 1
      internal/logic/Wx/get_wx_list_logic.go
  3. 1 1
      internal/service/wechat/sync_wx.go

+ 1 - 1
hook/init.go

@@ -23,7 +23,7 @@ func NewHook(serverIp string, adminPort string, WxPort string) *Hook {
 		SetCommonRetryBackoffInterval(1*time.Second, 5*time.Second).
 		SetCommonRetryFixedInterval(2 * time.Second).SetTimeout(30 * time.Second)
 
-	workPhoneUrl := url.URL{Scheme: "ws", Host: "chat.gkscrm.com:13088"}
+	workPhoneUrl := url.URL{Scheme: "ws", Host: "chat-debug.gkscrm.com:13088"}
 
 	return &Hook{
 		ServerIp:     serverIp,

+ 1 - 1
internal/logic/Wx/get_wx_list_logic.go

@@ -165,7 +165,7 @@ func (l *GetWxListLogic) GetWxList(req *types.WxListReq) (*types.WxListResp, err
 	} else {
 		var result types.WorkPhoneGetWeChatsResp
 
-		res, err := reqv3.C().DevMode().R().SetSuccessResult(&result).Post("http://chat.gkscrm.com:13086/pc/GetWeChatsReq?id=0")
+		res, err := reqv3.C().DevMode().R().SetSuccessResult(&result).Post("http://chat-debug.gkscrm.com:13086/pc/GetWeChatsReq?id=0")
 		if err != nil {
 			return nil, err
 		}

+ 1 - 1
internal/service/wechat/sync_wx.go

@@ -24,7 +24,7 @@ func (s *SyncWx) SyncAll() {
 	client.SetCommonRetryCount(2).
 		SetCommonRetryBackoffInterval(1*time.Second, 5*time.Second).
 		SetCommonRetryFixedInterval(2 * time.Second).SetTimeout(30 * time.Second)
-	res, err := client.R().SetSuccessResult(&result).Post("http://chat.gkscrm.com:13086/pc/GetWeChatsReq?id=0")
+	res, err := client.R().SetSuccessResult(&result).Post("http://chat-debug.gkscrm.com:13086/pc/GetWeChatsReq?id=0")
 	if err != nil {
 		logx.Error("syncWx: ", err)
 		return