From e9581a2e040e0f1751d1e2f2426dacad4252f736 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Tue, 11 Feb 2020 13:17:42 +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--=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/QueryController.class.php | 6 +++--- Application/Admin/View/Query/withdraw.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php index 4f558fbcf..259fccaa8 100644 --- a/Application/Admin/Controller/QueryController.class.php +++ b/Application/Admin/Controller/QueryController.class.php @@ -1224,10 +1224,10 @@ class QueryController extends ThinkController $save['audit_time'] = time(); $save['status'] = $status; $res = $withdraw->where($map)->save($save); - if ($res === false) { - $this->error('操作失败'); - } else { + if ($res) { $this->success('操作成功', U('withdraw')); + } else { + $this->error('操作失败'); } } diff --git a/Application/Admin/View/Query/withdraw.html b/Application/Admin/View/Query/withdraw.html index 9932b2f13..67937146e 100644 --- a/Application/Admin/View/Query/withdraw.html +++ b/Application/Admin/View/Query/withdraw.html @@ -170,11 +170,11 @@ - + - + - + {$data.widthdraw_number} {$data.sum_money}