From a7891d6b575416f710c459eecf5858093195fc88 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Thu, 6 Feb 2020 17:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0>=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E5=91=98>=E7=BB=93=E7=AE=97=E7=AE=A1=E7=90=86>?= =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E6=8F=90=E7=8E=B0--=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/QueryController.class.php | 16 +++++++++++----- Application/Admin/View/Query/settlement.html | 4 +--- Application/Admin/View/Query/withdraw.html | 3 ++- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php index a28fb5f2e..544d7eb71 100644 --- a/Application/Admin/Controller/QueryController.class.php +++ b/Application/Admin/Controller/QueryController.class.php @@ -1194,11 +1194,10 @@ class QueryController extends ThinkController $this->ajaxReturn(['msg' => $msg]); } - public function set_withdraw_status() + public function set_withdraw_status($status = 1) { $withdraw = M('withdraw', "tab_"); $ids = I('ids', 0); - $status = 1; if (empty($ids)) { $this->error('参数异常'); } @@ -1207,14 +1206,21 @@ class QueryController extends ThinkController } else { $map['id'] = $ids; } - $map['status'] = 0; + switch ($status) { + case 1: + $map['status'] = 0; + break; + case 2: + $map['status'] = 1; + break; + } $save['audit_time'] = time(); $save['status'] = $status; $res = $withdraw->where($map)->save($save); if ($res === false) { - $this->error('审核失败'); + $this->error('操作失败'); } else { - $this->success('审核成功', U('withdraw')); + $this->success('操作成功', U('withdraw')); } } diff --git a/Application/Admin/View/Query/settlement.html b/Application/Admin/View/Query/settlement.html index 4f1e6ad94..74123ec83 100644 --- a/Application/Admin/View/Query/settlement.html +++ b/Application/Admin/View/Query/settlement.html @@ -219,9 +219,7 @@ {$record.status_text} {$record.respond} - - 汇款证明 - + 重新审核 diff --git a/Application/Admin/View/Query/withdraw.html b/Application/Admin/View/Query/withdraw.html index afb677218..2946f9515 100644 --- a/Application/Admin/View/Query/withdraw.html +++ b/Application/Admin/View/Query/withdraw.html @@ -59,6 +59,7 @@ 通 过 驳 回 自动审核管理 + 确认汇款 @@ -187,7 +188,7 @@ 通过 驳回 - 上传汇款证明 + 确认汇款