|
@@ -75,6 +75,10 @@ class WholeController extends Curd
|
|
|
if ($type == 'todayOrder' && empty($where['order_addtimes'])){
|
|
|
$where['order_addtimes'][0] = strtotime(date('Y-m-d').' 00:00:00');
|
|
|
$where['order_addtimes'][1] = strtotime(date('Y-m-d').' 23:59:59');
|
|
|
+ }else if ($type == 'todayOrderAmount'){
|
|
|
+ $where['order_status_payment'] = 'SUCCESS';
|
|
|
+ $where['order_addtimes'][0] = strtotime(date('Y-m-d').' 00:00:00');
|
|
|
+ $where['order_addtimes'][1] = strtotime(date('Y-m-d').' 23:59:59');
|
|
|
}
|
|
|
$field = $field ?? 'order_addtimes';
|
|
|
if (!empty($where['order_status_system']) && in_array($where['order_status_system'], ['PENDING', 'WAITING', 'SENDING', 'RECVING', 'SIGNED', 'CONFIRM'])) {
|