From e4bb638a1d726de33b9c38cecac99eeaac759d22 Mon Sep 17 00:00:00 2001 From: wanyongkang <937888580@qq.com> Date: Mon, 26 Oct 2020 12:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=94=AF=E6=A0=B8=E5=AF=B9=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/income_check_script.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]];