|
|
@@ -2,6 +2,7 @@ package balance_controller
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
+ "fohow.com/apps/models/sys_config"
|
|
|
"fohow.com/libs/lib_redis"
|
|
|
"fohow.com/libs/tool"
|
|
|
"github.com/astaxie/beego"
|
|
|
@@ -36,8 +37,9 @@ func (self *BalanceController) GetBalanceInfo() {
|
|
|
Total int64 `orm:"-" json:"total"` //余额,单位分
|
|
|
ShowInviteMode int64 `orm:"-" json:"show_invite_mode"` //是否群主
|
|
|
SilverTotal int64 `orm:"-" json:"silver_total"` //银豆余额,单位分
|
|
|
-
|
|
|
+ FreightLimit int64 `orm:"-" json:"freight_limit"` //运费金额,单位分
|
|
|
}
|
|
|
+
|
|
|
//user := self.GetCurrentUser(true)
|
|
|
wxUId := self.GetCurrentWxUserIdByToken()
|
|
|
wxUser := user_model.GetWxUserById(wxUId, true)
|
|
|
@@ -48,6 +50,7 @@ func (self *BalanceController) GetBalanceInfo() {
|
|
|
info.Total = balance_model.GetUserTotalBalance(wxUId)
|
|
|
info.SilverTotal = balance_model.GetUserTotalSilver(wxUId)
|
|
|
info.ShowInviteMode = wxUser.ShowInviteMode
|
|
|
+ info.FreightLimit = sys_config.GetOrderLimit()
|
|
|
self.Data["json"] = info
|
|
|
self.ServeJSON()
|
|
|
}
|