Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
admin-backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
admin-backend
Commits
f5ba0ec1
Commit
f5ba0ec1
authored
Mar 18, 2024
by
brent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify user level
parent
c61b323c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
7 deletions
+8
-7
kong.conf
conf/kong.conf
+1
-1
mysql.conf
conf/mysql.conf
+1
-1
postgres.conf
conf/postgres.conf
+1
-1
redis.conf
conf/redis.conf
+2
-2
funds.go
controllers/funds.go
+1
-1
user.go
controllers/user.go
+2
-1
No files found.
conf/kong.conf
View file @
f5ba0ec1
...
...
@@ -2,7 +2,7 @@
kongadminurl
=
"http://192.168.1.10:8001"
[
test
]
kongadminurl
=
"http://
43.198.252.255
:8001"
kongadminurl
=
"http://
18.167.203.17
:8001"
[
prod
]
kongadminurl
=
"http://172.31.12.187:8001"
\ No newline at end of file
conf/mysql.conf
View file @
f5ba0ec1
...
...
@@ -8,7 +8,7 @@ mysqldb = "liuxuzhong"
[
test
]
mysqluser
=
"ai"
mysqlpass
=
"RFnnKHRar5xk7TEF"
mysqlhost
=
"
43.198.252.255
"
mysqlhost
=
"
18.167.203.17
"
mysqlport
=
3306
mysqldb
=
"ai"
...
...
conf/postgres.conf
View file @
f5ba0ec1
...
...
@@ -15,7 +15,7 @@ senderport = 9009
[
test
]
postgresuser
=
"admin"
postgrespass
=
"quest"
postgreshost
=
"
43.198.252.255
"
postgreshost
=
"
18.167.203.17
"
postgresport
=
8812
postgresdb
=
"qdb"
senderport
=
9009
...
...
conf/redis.conf
View file @
f5ba0ec1
...
...
@@ -8,11 +8,11 @@ balancedb = 0
balancepass
=
""
[
test
]
tokenhost
=
"
43.198.252.255
:6379"
tokenhost
=
"
18.167.203.17
:6379"
tokendb
=
0
tokenpass
=
"iH0g2CqzjI6SfercGwsT"
balancehost
=
"
43.198.252.255
:6379"
balancehost
=
"
18.167.203.17
:6379"
balancedb
=
0
balancepass
=
"iH0g2CqzjI6SfercGwsT"
...
...
controllers/funds.go
View file @
f5ba0ec1
...
...
@@ -36,7 +36,7 @@ func (server *FundsController) Recharge() {
return
}
if
info
.
Role
!=
1
&&
info
.
Role
!=
2
&&
chargeRequest
.
PaymentMethod
!
=
models
.
ManualPay
{
if
info
.
Role
!=
1
&&
info
.
Role
!=
2
&&
chargeRequest
.
PaymentMethod
=
=
models
.
ManualPay
{
server
.
respond
(
models
.
BusinessFailed
,
"请联系客户服务人员"
)
return
}
...
...
controllers/user.go
View file @
f5ba0ec1
...
...
@@ -189,9 +189,10 @@ func (server *UserController) UserInfo() {
return
}
balance
,
err
:=
odysseus
.
GetUserBalance
(
int64
(
checkUser
.
Id
))
if
err
==
nil
{
if
err
==
nil
&&
balance
>
0
{
checkUser
.
Balance
=
balance
}
checkUser
.
Balance
=
checkUser
.
Balance
/
1000000
server
.
respond
(
http
.
StatusOK
,
""
,
checkUser
)
}
...
...
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