Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-meshproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-meshproxy
Commits
be22277f
Commit
be22277f
authored
Jun 01, 2022
by
李科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev'
parents
5033abd5
2bf9cf12
Pipeline
#77865
passed with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
.beagle.yml
.beagle.yml
+3
-3
src/handler/proxyhandler.go
src/handler/proxyhandler.go
+3
-3
No files found.
.beagle.yml
View file @
be22277f
...
...
@@ -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
---
...
...
src/handler/proxyhandler.go
View file @
be22277f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment