dxc 2 anos atrás
pai
commit
62ddf3601d
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      internal/logic/callback/callbackmsglogic.go

+ 5 - 0
internal/logic/callback/callbackmsglogic.go

@@ -228,6 +228,11 @@ func updateCustomerList(svcCtx *svc.ServiceContext, userIds pie.Strings) {
 			continue
 		}
 		_, err := svcCtx.CbCustomerModel.GetCustomerByExternalUserid(uid)
+		key := fmt.Sprintf("cb_user_state:%v", uid)
+		v, _ := svcCtx.Redis.Get(key)
+		if v == "4" {
+			continue
+		}
 		if err != nil {
 			//此处因为该接口查询多个用户时,如果其中一个超过24小时不回复,会导致所有信息都不会返回,因此这里单独请求
 			err, list := svcCtx.WxApi.GetCustomerList([]string{uid})