From 38f091fa70794840a3e164b0e9831dbfadd6caf7 Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 9 Dec 2024 16:14:25 +0800 Subject: [PATCH] opcache --- common/forms/LedgerForm.php | 3 ++- web/index.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/forms/LedgerForm.php b/common/forms/LedgerForm.php index 6ca4575..10fd755 100644 --- a/common/forms/LedgerForm.php +++ b/common/forms/LedgerForm.php @@ -470,7 +470,8 @@ class LedgerForm extends BaseModel $logProcess->updated_at = $time; $logProcess->saveOrFail(); } - + + $platformDeliveryTotal = 0; //增加快递记录 if($productOrder->trans_expenses > 0){ $platformDeliveryTotal = Ledger::find()->where(['order_id' => $this->order_id, 'user_type' => 2, 'order_type' => 1, 'fee_type' => 3])->sum('money'); // 该订单快递费用 diff --git a/web/index.php b/web/index.php index 5f25aa1..d8190e4 100644 --- a/web/index.php +++ b/web/index.php @@ -20,6 +20,6 @@ if ($_GET['test']?? '' === 'liqi') { print_r(get_device_type());die; } elseif($_GET['test']?? '' === 'restartOp') { $result = opcache_reset(); - echo $result ? 'OPcache 已重置' : 'OPcache 重置失败'; + echo $result ? 'OPcache 已重置' : 'OPcache 重置失败';die; } (new \common\core\WebApplication($config))->run();