From f48d492b1dcbca1df0d092949a42f53584b480b2 Mon Sep 17 00:00:00 2001 From: lanzu_qsy <334039090@qq.com> Date: Thu, 3 Sep 2020 15:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=8D=E5=8A=A1=E5=95=86?= =?UTF-8?q?=E5=8F=AF=E6=8F=90=E7=8E=B0=E9=87=91=E9=A2=9D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/HomeController.php | 6 +++--- app/Admin/Controllers/LanzuMpWithdrawController.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Admin/Controllers/HomeController.php b/app/Admin/Controllers/HomeController.php index 12bd86b..7414269 100644 --- a/app/Admin/Controllers/HomeController.php +++ b/app/Admin/Controllers/HomeController.php @@ -59,7 +59,7 @@ class HomeController extends Controller ->description('欢迎回到懒族后台') ->body(function (Row $row) { $row->column(4, function (Column $column) { - $column->row(new Examples\Community\TotalAmount(Admin::user()->id,1)); + $column->row(new Examples\Community\TotalAmount(Admin::user()->id,Type::BALANCE_USER_TYPE_MP)); }); $row->column(4, function (Column $column) { @@ -74,7 +74,7 @@ class HomeController extends Controller ->description('欢迎回到懒族后台') ->body(function (Row $row) { $row->column(3, function (Column $column) { - $column->row(new Examples\Community\TotalAmount(Admin::user()->id,2)); + $column->row(new Examples\Community\TotalAmount(Admin::user()->id,Type::BALANCE_USER_TYPE_MM)); }); $row->column(3, function (Column $column) { @@ -113,7 +113,7 @@ class HomeController extends Controller }); $row->column(4, function (Column $column) { - $column->row(new Examples\Community\TotalAmount(Admin::user()->id,3)); + $column->row(new Examples\Community\TotalAmount(Admin::user()->id,Type::BALANCE_USER_TYPE_CS)); }); }); } diff --git a/app/Admin/Controllers/LanzuMpWithdrawController.php b/app/Admin/Controllers/LanzuMpWithdrawController.php index 1b4995d..ec56d15 100755 --- a/app/Admin/Controllers/LanzuMpWithdrawController.php +++ b/app/Admin/Controllers/LanzuMpWithdrawController.php @@ -177,7 +177,7 @@ class LanzuMpWithdrawController extends AdminController $mp = LanzuMpInfo::where('admin_user_id', $current_user->id)->first(); //获取服务商可提现金额 $mpb = MpBalance::where('source_id', $mp->admin_user_id) - ->where('user_type', 1)->first(); + ->where('user_type', Type::BALANCE_USER_TYPE_MP)->first(); $balance = 0; if ($mpb) { $balance = $mpb->balance;