|
@@ -1502,6 +1502,9 @@ func UpdateWxUserLabel(cont context.Context) (err error) {
|
|
|
func GetWxUserEndDate(user *models.WxUserItem) (isShowTerminateButton bool, endDataButton string) {
|
|
|
companyId := user.CompanyId
|
|
|
userId := user.UserId
|
|
|
+ if companyId <= 1 {
|
|
|
+ return
|
|
|
+ }
|
|
|
//添加一个key拦截
|
|
|
key := "CYGX_WX_USER_END_DATE_KEY" + fmt.Sprint("C_", companyId, "U_", userId)
|
|
|
if utils.Rc.IsExist(key) {
|
|
@@ -1512,7 +1515,7 @@ func GetWxUserEndDate(user *models.WxUserItem) (isShowTerminateButton bool, endD
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
fmt.Println(err)
|
|
|
- go utils.SendAlarmMsg(fmt.Sprint("权益正式客户到期前30天弹窗消息提醒 失败GetWxUserEndDate, err:", err.Error()), 2)
|
|
|
+ go utils.SendAlarmMsg(fmt.Sprint("权益正式客户到期前30天弹窗消息提醒 失败GetWxUserEndDate, err:", err.Error(), "UserId", userId), 2)
|
|
|
}
|
|
|
}()
|
|
|
|