|
|
@@ -1152,11 +1152,13 @@ func (this *PaymentInfoController) IsPayTime() {
|
|
|
endDay, _ := strconv.Atoi(endDayStr)
|
|
|
today := time.Now().Day()
|
|
|
code := 0
|
|
|
+ message := "可交费时间段内,允许操作!"
|
|
|
if today < startDay || today > endDay {
|
|
|
code = -1
|
|
|
+ message = "由于大港油田公司财务系统结账,暂停每月27日-1日交费,交费时间为每月2日-26日,如给您带来不便我们深表歉意! "
|
|
|
}
|
|
|
var errInfo ErrorInfo
|
|
|
- errInfo.Message = "由于大港油田公司财务系统结账,暂停每月27日-1日交费,交费时间为每月2日-26日,如给您带来不便我们深表歉意! "
|
|
|
+ errInfo.Message = message
|
|
|
errInfo.Code = int64(code)
|
|
|
this.Data["json"] = &errInfo
|
|
|
this.ServeJSON()
|