diff --git a/script/income_check_script.php b/script/income_check_script.php index 5931b88..f08328e 100644 --- a/script/income_check_script.php +++ b/script/income_check_script.php @@ -5,7 +5,7 @@ * @Author: kangkang * @Date: 2020-10-03 18:23:43 * @LastEditors: kangkang - * @LastEditTime: 2020-10-26 11:45:39 + * @LastEditTime: 2020-10-26 12:16:13 */ $is_script = 1; include __DIR__ . '/../index.php'; @@ -33,8 +33,8 @@ $product_order_enum = new ProductOrderEnum; $income_check_model = new IncomeCheckModel; $data = []; -$today = date('Y-m-d', time()); -$yesterday = date('Y-m-d', (time() - 86400)); +$today = date('Y-m-d 00:00:00', time()); +$yesterday = date('Y-m-d 00:00:00', (time() - 86400)); $data['user_balance'] = $user->field('SUM(`RestAmount`) AS balance')->fetch()['balance']; $where1 = ['UpdateTime' => ['<', $today]];