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();