Commit f5ba0ec1 authored by brent's avatar brent

modify user level

parent c61b323c
......@@ -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
......@@ -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"
......
......@@ -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
......
......@@ -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"
......
......@@ -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
}
......
......@@ -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)
}
......
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