Commit be22277f authored by 李科's avatar 李科

Merge branch 'dev'

parents 5033abd5 2bf9cf12
Pipeline #77865 passed with stage
......@@ -50,7 +50,7 @@ steps:
base: registry.cn-qingdao.aliyuncs.com/wod/alpine-glibc:3.12
dockerfile: .beagle/dockerfile
repo: gzgajzapi/apaas-meshproxy
Version: "v3.0.7"
Version: "v3.0.8"
channel: alpha
args: "TARGETOS=linux,TARGETARCH=amd64"
registry: hub.wodcloud.com
......@@ -87,8 +87,8 @@ steps:
REGISTRY_PASSWORD:
from_secret: REGISTRY_PASSWORD
settings:
source: hub.wodcloud.com/gzgajzapi/apaas-meshproxy:v3.0.7-alpha
target: hub.wodcloud.com/gzgajzapi/apaas-meshproxy:v3.0.7
source: hub.wodcloud.com/gzgajzapi/apaas-meshproxy:v3.0.8-alpha
target: hub.wodcloud.com/gzgajzapi/apaas-meshproxy:v3.0.8
registry: hub.wodcloud.com
---
......
......@@ -80,14 +80,14 @@ func Proxy(c *gin.Context) {
requestStartTime := FormatDateToCarbon(proxyData.RequestStartTime)
requestEndTime := FormatDateToCarbon(proxyData.RequestEndTime)
now := carbon.Now(carbon.Shanghai)
if requestStartTime.Gt(now) {
today := carbon.Parse(carbon.Now().ToDateString(), carbon.Shanghai)
if requestStartTime.Gt(today) {
res := model.WebRes{}
res.ErrMsg = `申请使用期限未开始`
c.JSON(200, res)
return
}
if requestEndTime.Lt(now) {
if requestEndTime.Lt(today) {
res := model.WebRes{}
res.ErrMsg = `申请使用期限已过期`
c.JSON(200, res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment