|
@@ -283,7 +283,7 @@ class PayRequest extends loyalsoft\Object_ext {
|
|
|
$dayTS = loyalsoft\TimeUtil::tsDayBegin(); # 当天起始时间戳
|
|
|
$monthTotal = loyalsoft\daoInst()
|
|
|
->select("sum(`amount`)/100 as total") # 总金额(单位:分转元)
|
|
|
- ->from("tpl_order_tab")
|
|
|
+ ->from(self::orderTab)
|
|
|
->where("uid")->eq($uid) # 该玩家
|
|
|
->andWhere("status")->eq(1) # 成交订单
|
|
|
->andWhere("order_ts")->ge($monthTS) # 本月
|
|
@@ -293,7 +293,7 @@ class PayRequest extends loyalsoft\Object_ext {
|
|
|
}
|
|
|
$dayTotal = loyalsoft\daoInst()
|
|
|
->select("sum(`amount`)/100 as total") # 总金额(单位:分转元)
|
|
|
- ->from("tpl_order_tab")
|
|
|
+ ->from(self::orderTab)
|
|
|
->where("uid")->eq($uid) # 该玩家
|
|
|
->andWhere("status")->eq(1) # 成交订单
|
|
|
->andWhere("order_ts")->ge($dayTS) # 今日
|