diff --git a/Application/Admin/Controller/PaymentMerchantController.class.php b/Application/Admin/Controller/PaymentMerchantController.class.php index 5e89bcb4c..8ad732dad 100644 --- a/Application/Admin/Controller/PaymentMerchantController.class.php +++ b/Application/Admin/Controller/PaymentMerchantController.class.php @@ -675,6 +675,13 @@ class PaymentMerchantController extends ThinkController ]); } + if ($rule['start_time'] < strtotime(date('Y-m-d 23:59:59', time()))) { + $this->ajaxReturn([ + 'status' => 0, + 'message' => '该记录不可删除,规则开始时间包含今天或今天之前的时间。' + ]); + } + M('payment_rule', 'tab_')->where(['id' => $id])->delete(); addOperationLog([ 'op_type' => 2,