Browse Source

no message

zhangchuanxing 2 weeks ago
parent
commit
b42e657a14
1 changed files with 4 additions and 1 deletions
  1. 4 1
      services/wx_user.go

+ 4 - 1
services/wx_user.go

@@ -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)
 		}
 	}()