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