|
@@ -72,14 +72,14 @@ func (this *vipSubscribeStruct) PayCallBack(param *CallBackParam) bool {
|
|
|
var startTime time.Time
|
|
|
var endTime time.Time
|
|
|
if vmsg.OrderType == 1 { //新订单 计算开始时间 结束时间
|
|
|
- startTime := time.Now()
|
|
|
+ startTime = time.Now()
|
|
|
/*if vmsg.Cycleunit == 1 { //年
|
|
|
endTime = startTime.AddDate(vmsg.Cyclecount, 0, 0)
|
|
|
} else if vmsg.Cycleunit == 2 { //月
|
|
|
endTime = startTime.AddDate(0, vmsg.Cyclecount, 0)
|
|
|
}*/
|
|
|
- endTime := util.GetDATE(vmsg.Cycleunit, vmsg.Cyclecount, startTime.Unix())
|
|
|
-
|
|
|
+ endTime = util.GetDATE(vmsg.Cycleunit, vmsg.Cyclecount, startTime.Unix())
|
|
|
+ log.Println("endTime", endTime)
|
|
|
updateMap["vip_starttime"] = qutil.FormatDate(&startTime, qutil.Date_Full_Layout)
|
|
|
updateMap["vip_endtime"] = qutil.FormatDate(&endTime, qutil.Date_Full_Layout)
|
|
|
}
|