作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

下单成功弹出海报

... ... @@ -24,13 +24,13 @@ class OrderController extends AdminBaseController
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
if (!empty($startTime) && !empty($endTime)) {
$where['create_time'] = [['>= time', $startTime], ['<= time', $endTime]];
$where['get_time'] = [['>= time', $startTime], ['<= time', $endTime]];
} else {
if (!empty($startTime)) {
$where['create_time'] = ['>= time', $startTime];
$where['get_time'] = ['>= time', $startTime];
}
if (!empty($endTime)) {
$where['create_time'] = ['<= time', $endTime];
$where['get_time'] = ['<= time', $endTime];
}
}
$startTime1 = empty($param['start_time1']) ? 0 : strtotime($param['start_time1']);
... ... @@ -325,13 +325,13 @@ class OrderController extends AdminBaseController
$startTime = empty($param['start_time']) ? 0 : strtotime($param['start_time']);
$endTime = empty($param['end_time']) ? 0 : strtotime($param['end_time']);
if (!empty($startTime) && !empty($endTime)) {
$where['create_time'] = [['>= time', $startTime], ['<= time', $endTime]];
$where['get_time'] = [['>= time', $startTime], ['<= time', $endTime]];
} else {
if (!empty($startTime)) {
$where['create_time'] = ['>= time', $startTime];
$where['get_time'] = ['>= time', $startTime];
}
if (!empty($endTime)) {
$where['create_time'] = ['<= time', $endTime];
$where['get_time'] = ['<= time', $endTime];
}
}
$startTime1 = empty($param['start_time1']) ? 0 : strtotime($param['start_time1']);
... ...