Sfoglia il codice sorgente

wip:打印log 职位id

wangkaiyue 1 anno fa
parent
commit
43fdd4afa9
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      src/jfw/modules/subscribepay/src/timetask/timetask.go

+ 2 - 3
src/jfw/modules/subscribepay/src/timetask/timetask.go

@@ -361,13 +361,12 @@ func checkIsExpire(iy Identity) {
 				showTip := func(s, e int64) bool {
 				showTip := func(s, e int64) bool {
 					for _, cfg := range TimeTaskConfig.SubVipTipDuring {
 					for _, cfg := range TimeTaskConfig.SubVipTipDuring {
 						if e-s >= cfg.Cycle*oneDayLong && (now_unix+oneDayLong*(cfg.Day+1) > e && now_unix+oneDayLong*cfg.Day < e) {
 						if e-s >= cfg.Cycle*oneDayLong && (now_unix+oneDayLong*(cfg.Day+1) > e && now_unix+oneDayLong*cfg.Day < e) {
-							log.Println("用户", _id, i_vip_status, l_vip_endtime, "新增到期提醒", cfg.Day)
+							log.Println("用户 sVipTip", _id, i_vip_status, l_vip_endtime, "新增到期提醒", cfg.Day)
 							return true
 							return true
 						}
 						}
 					}
 					}
 					return false
 					return false
 				}(l_vip_starttime, l_vip_endtime)
 				}(l_vip_starttime, l_vip_endtime)
-
 				if !showTip {
 				if !showTip {
 					continue
 					continue
 				}
 				}
@@ -406,7 +405,7 @@ func checkIsExpire(iy Identity) {
 				// 存入redis值,供前台弹框使用
 				// 存入redis值,供前台弹框使用
 				redis.Put("newother", fmt.Sprintf("Expire_SubvipTip_%d", identity.PositionId), l_vip_endtime, qutil.IntAll(l_vip_endtime-now_unix))
 				redis.Put("newother", fmt.Sprintf("Expire_SubvipTip_%d", identity.PositionId), l_vip_endtime, qutil.IntAll(l_vip_endtime-now_unix))
 
 
-				log.Println("用户", _id, i_vip_status, l_vip_endtime, "修改即将到期状态", updateOk)
+				log.Println("用户 sVipTip", _id, identity.PositionId, i_vip_status, l_vip_endtime, "修改即将到期状态", updateOk)
 			}
 			}
 			m = make(map[string]interface{})
 			m = make(map[string]interface{})
 		}
 		}