Commit f5ba0ec1 authored by brent's avatar brent

modify user level

parent c61b323c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
kongadminurl = "http://192.168.1.10:8001" kongadminurl = "http://192.168.1.10:8001"
[test] [test]
kongadminurl = "http://43.198.252.255:8001" kongadminurl = "http://18.167.203.17:8001"
[prod] [prod]
kongadminurl = "http://172.31.12.187:8001" kongadminurl = "http://172.31.12.187:8001"
\ No newline at end of file
...@@ -8,7 +8,7 @@ mysqldb = "liuxuzhong" ...@@ -8,7 +8,7 @@ mysqldb = "liuxuzhong"
[test] [test]
mysqluser = "ai" mysqluser = "ai"
mysqlpass = "RFnnKHRar5xk7TEF" mysqlpass = "RFnnKHRar5xk7TEF"
mysqlhost = "43.198.252.255" mysqlhost = "18.167.203.17"
mysqlport = 3306 mysqlport = 3306
mysqldb = "ai" mysqldb = "ai"
......
...@@ -15,7 +15,7 @@ senderport = 9009 ...@@ -15,7 +15,7 @@ senderport = 9009
[test] [test]
postgresuser = "admin" postgresuser = "admin"
postgrespass = "quest" postgrespass = "quest"
postgreshost = "43.198.252.255" postgreshost = "18.167.203.17"
postgresport = 8812 postgresport = 8812
postgresdb = "qdb" postgresdb = "qdb"
senderport = 9009 senderport = 9009
......
...@@ -8,11 +8,11 @@ balancedb = 0 ...@@ -8,11 +8,11 @@ balancedb = 0
balancepass = "" balancepass = ""
[test] [test]
tokenhost = "43.198.252.255:6379" tokenhost = "18.167.203.17:6379"
tokendb = 0 tokendb = 0
tokenpass = "iH0g2CqzjI6SfercGwsT" tokenpass = "iH0g2CqzjI6SfercGwsT"
balancehost = "43.198.252.255:6379" balancehost = "18.167.203.17:6379"
balancedb = 0 balancedb = 0
balancepass = "iH0g2CqzjI6SfercGwsT" balancepass = "iH0g2CqzjI6SfercGwsT"
......
...@@ -36,7 +36,7 @@ func (server *FundsController) Recharge() { ...@@ -36,7 +36,7 @@ func (server *FundsController) Recharge() {
return 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, "请联系客户服务人员") server.respond(models.BusinessFailed, "请联系客户服务人员")
return return
} }
......
...@@ -189,9 +189,10 @@ func (server *UserController) UserInfo() { ...@@ -189,9 +189,10 @@ func (server *UserController) UserInfo() {
return return
} }
balance, err := odysseus.GetUserBalance(int64(checkUser.Id)) balance, err := odysseus.GetUserBalance(int64(checkUser.Id))
if err == nil { if err == nil && balance > 0 {
checkUser.Balance = balance checkUser.Balance = balance
} }
checkUser.Balance = checkUser.Balance / 1000000
server.respond(http.StatusOK, "", checkUser) server.respond(http.StatusOK, "", checkUser)
} }
......
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