|
@@ -49,7 +49,10 @@ func (l *WxRefreshLogic) WxRefresh() (resp *types.BaseMsgResp, err error) {
|
|
|
for _, account := range result.Data {
|
|
|
wxinfo, err := l.svcCtx.DB.Wx.Query().
|
|
|
Where(
|
|
|
- wx.WxidEQ(account.Wechatid),
|
|
|
+ wx.Or(
|
|
|
+ wx.WxidEQ(account.Wechatid),
|
|
|
+ wx.PortEQ(account.Deviceid),
|
|
|
+ ),
|
|
|
).
|
|
|
Only(l.ctx)
|
|
|
|