|
|
@@ -21,11 +21,13 @@ func (self *FohowLeftTopDataOfHomePageController) Get() {
|
|
|
// platform_type = models.PLATFORM_TYPE_FANS_FOHOW
|
|
|
//}
|
|
|
type Ret struct {
|
|
|
- TotalFans int64 `json:"platform_total_fans"`
|
|
|
- TotalRank1s int64 `json:"total_load1"` //总店长
|
|
|
- TotalRank2s int64 `json:"total_load2"` //总群主
|
|
|
- TotalInvest int64 `json:"total_invest"` //充值总额
|
|
|
- TotalOrder int64 `json:"total_order"` //订单总额
|
|
|
+ TotalFans int64 `json:"platform_total_fans"`
|
|
|
+ TotalRank1s int64 `json:"total_load1"` //总店长
|
|
|
+ TotalRank2s int64 `json:"total_load2"` //总群主
|
|
|
+ TotalInvest int64 `json:"total_invest"` //充值总额
|
|
|
+ TotalOrder int64 `json:"total_order"` //订单总额
|
|
|
+ TotalTakeCash int64 `json:"total_order"` //提现总额
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//totalFans := models.GetFansTotalCountByType(platform_type)
|
|
|
@@ -34,7 +36,9 @@ func (self *FohowLeftTopDataOfHomePageController) Get() {
|
|
|
totalRank2 := models.GetRank2UsersTotalCount()
|
|
|
totalInvest := models.GetFohowAllRechargeTotal() / int64(100)
|
|
|
totalProject := models.GetFohowTotalOrderCount() / int64(100)
|
|
|
- self.Data["json"] = &Ret{TotalFans: totalFans, TotalRank1s: total, TotalRank2s: totalRank2, TotalInvest: totalInvest, TotalOrder: totalProject}
|
|
|
+ totalTakeCash := models.GetFohowAllTakeCashTotal() / int64(100)
|
|
|
+
|
|
|
+ self.Data["json"] = &Ret{TotalTakeCash: totalTakeCash, TotalFans: totalFans, TotalRank1s: total, TotalRank2s: totalRank2, TotalInvest: totalInvest, TotalOrder: totalProject}
|
|
|
|
|
|
self.ServeJSON()
|
|
|
}
|