DESKTOP-53URE31\USER hace 4 meses
padre
commit
d3927c24e9
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      internal/logic/Wx/get_wx_list_logic.go

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

@@ -121,7 +121,12 @@ func (l *GetWxListLogic) GetWxList(req *types.WxListReq) (*types.WxListResp, err
 				}
 			}
 		} else {
-			loginStatus = uint8(workphoneWxList[v.Wxid].Isonline)
+			workphoneWx, exists := workphoneWxList[v.Wxid]
+			if exists && workphoneWx.Isonline == 0 {
+				loginStatus = 1
+			} else {
+				loginStatus = 0
+			}
 		}
 
 		processID := v.ProcessID