huangjiajun hace 1 mes
padre
commit
2fc9e90cc6
Se han modificado 1 ficheros con 8 adiciones y 4 borrados
  1. +8
    -4
      app/hdl/hdl_store_index.go

+ 8
- 4
app/hdl/hdl_store_index.go Ver fichero

@@ -60,10 +60,14 @@ func StoreIndexTotal(c *gin.Context) {
tmp := []map[string]string{
{"name": "营业总额", "value": svc.GetCommissionPrec(c, amount, "2", "1")},
}
if store.StoreType == 0 {
tmp = append(tmp, map[string]string{"name": "佣金收益", "value": svc.GetCommissionPrec(c, commission, "2", "1")})
}
if store.StoreType > 0 {
if store != nil {
if store.StoreType == 0 {
tmp = append(tmp, map[string]string{"name": "佣金收益", "value": svc.GetCommissionPrec(c, commission, "2", "1")})
}
if store.StoreType > 0 {
tmp = append(tmp, map[string]string{"name": "订单收益", "value": svc.GetCommissionPrec(c, money, "2", "1")})
}
} else {
tmp = append(tmp, map[string]string{"name": "订单收益", "value": svc.GetCommissionPrec(c, money, "2", "1")})
}
tmp = append(tmp, map[string]string{"name": "已付款订单量", "value": utils.IntToStr(utils.StrToInt(successCount))})


Cargando…
Cancelar
Guardar