From 62d2eaef720d68b810d19dc2cbd2753cb9534693 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Thu, 22 Oct 2020 13:49:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=95=86=E6=88=B7=E8=A7=84?= =?UTF-8?q?=E5=88=99=E9=85=8D=E7=BD=AE=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PaymentMerchantController.class.php | 13 +++++++++---- .../Admin/View/PaymentMerchant/ruleEditForm.html | 4 ++-- Application/Admin/View/PaymentMerchant/rules.html | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Application/Admin/Controller/PaymentMerchantController.class.php b/Application/Admin/Controller/PaymentMerchantController.class.php index 4d7996559..e55b1d99e 100644 --- a/Application/Admin/Controller/PaymentMerchantController.class.php +++ b/Application/Admin/Controller/PaymentMerchantController.class.php @@ -609,7 +609,7 @@ class PaymentMerchantController extends ThinkController ]); } - $startTime = $params['start_time'] == '' ? 0 : strtotime($params['start_time'] . ' 00:00:00'); + /* $startTime = $params['start_time'] == '' ? 0 : strtotime($params['start_time'] . ' 00:00:00'); $endTime = $params['end_time'] == '' ? PaymentRuleService::FOREVER_TIME : strtotime($params['end_time'] . ' 23:59:59'); if (date('Ymd', $rule['start_time']) <= date('Ymd') && $startTime != $rule['start_time']) { @@ -637,14 +637,14 @@ class PaymentMerchantController extends ThinkController 'status' => 0, 'message' => '最后生效时间在今日之前,不可修改' ]); - } + } */ $item = [ 'alipay_merchant_id' => $params['alipay_merchant_id'], 'weixin_merchant_id' => $params['weixin_merchant_id'], 'express_merchant_id' => $params['express_merchant_id'], - 'start_time' => $startTime, - 'end_time' => $endTime, + // 'start_time' => $startTime, + // 'end_time' => $endTime, 'update_time' => time() ]; @@ -667,6 +667,11 @@ class PaymentMerchantController extends ThinkController public function deleteRule() { + $this->ajaxReturn([ + 'status' => 0, + 'message' => '暂不支持删除' + ]); + $id = I('id', 0); $rule = M('payment_rule', 'tab_')->where(['id' => $id])->find(); diff --git a/Application/Admin/View/PaymentMerchant/ruleEditForm.html b/Application/Admin/View/PaymentMerchant/ruleEditForm.html index 3e2e21b84..eec8f5106 100644 --- a/Application/Admin/View/PaymentMerchant/ruleEditForm.html +++ b/Application/Admin/View/PaymentMerchant/ruleEditForm.html @@ -183,13 +183,13 @@