boweniac 6 zile în urmă
părinte
comite
8062ff040c

+ 6 - 3
internal/logic/WorkPhone/wx_refresh_logic.go

@@ -52,9 +52,12 @@ func (l *WxRefreshLogic) WxRefresh() (resp *types.BaseMsgResp, err error) {
 		}
 		wxinfo, err := l.svcCtx.DB.Wx.Query().
 			Where(
-				wx.Or(
-					wx.WxidEQ(account.Wechatid),
-					wx.PortEQ(account.Deviceid),
+				wx.And(
+					wx.Or(
+						wx.WxidEQ(account.Wechatid),
+						wx.PortEQ(account.Deviceid),
+					),
+					wx.CtypeEQ(1),
 				),
 			).
 			Only(l.ctx)

+ 1 - 0
internal/logic/batch_msg/create_batch_msg_logic.go

@@ -67,6 +67,7 @@ func (l *CreateBatchMsgLogic) CreateBatchMsg(req *types.BatchMsgInfo) (*types.Ba
 			l.Logger.Errorf("时间字符串转换错误: %v", err)
 			return nil, err
 		}
+		startTime = startTime.Add(-8 * time.Hour)
 		sendNow = false
 	}