From 1635695b8b51c214a68d0a47ad2f0620c065b10d Mon Sep 17 00:00:00 2001 From: lanzu_qsy <334039090@qq.com> Date: Mon, 31 Aug 2020 17:49:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8F=90=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/Test.php | 37 ++++++++++++++++++++++++++++++++++ app/Admin/routes.php | 1 + 2 files changed, 38 insertions(+) create mode 100644 app/Admin/Controllers/Test.php diff --git a/app/Admin/Controllers/Test.php b/app/Admin/Controllers/Test.php new file mode 100644 index 0000000..783542f --- /dev/null +++ b/app/Admin/Controllers/Test.php @@ -0,0 +1,37 @@ +transfer->toBalance([ + 'partner_trade_no' => $data['partner_trade_no'], // 商户订单号,需保持唯一性(只能是字母或者数字,不能包含有符号) + 'openid' => $data['openid'], + 'check_name' => 'NO_CHECK', // NO_CHECK:不校验真实姓名, FORCE_CHECK:强校验真实姓名 + 're_user_name' => $data['re_user_name'], // 如果 check_name 设置为FORCE_CHECK,则必填用户真实姓名 + 'amount' => $data['amount'], // 企业付款金额,单位为分 + 'desc' => $data['desc'], // 企业付款操作说明信息。必填 + ]); + return $res; + } +} diff --git a/app/Admin/routes.php b/app/Admin/routes.php index defe207..3853e3c 100644 --- a/app/Admin/routes.php +++ b/app/Admin/routes.php @@ -43,4 +43,5 @@ Route::group([ $router->any('/api/stores', 'LanzuServiceSpeakerController@getStores'); //统计店铺新增用户 $router->resource('/storeUserReport', 'StoreUserReportController'); + $router->any('/test', 'Test@test'); }); From 970a8775fee60209e932372bd8e970a4d329da47 Mon Sep 17 00:00:00 2001 From: lanzu_qsy <334039090@qq.com> Date: Mon, 31 Aug 2020 19:30:42 +0800 Subject: [PATCH 2/3] 1 --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ff712e7..6d02a28 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ yarn-error.log .idea .vscode/launch.json -/storage/debugbar \ No newline at end of file +/storage/debugbar +/public/certs \ No newline at end of file From 97b28f503810cee41b69fca2828fac4e1d93b065 Mon Sep 17 00:00:00 2001 From: lanzu_qsy <334039090@qq.com> Date: Wed, 2 Sep 2020 15:29:04 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/LanzuCsWithdrawController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Admin/Controllers/LanzuCsWithdrawController.php b/app/Admin/Controllers/LanzuCsWithdrawController.php index 3669a4e..558b5de 100644 --- a/app/Admin/Controllers/LanzuCsWithdrawController.php +++ b/app/Admin/Controllers/LanzuCsWithdrawController.php @@ -48,7 +48,7 @@ class LanzuCsWithdrawController extends AdminController $grid->column('csInfo.name', '提现用户'); $grid->money; $grid->status('状态')->using([1 => '已同意', -1 => '已拒绝', 0 => '待审核', -2 => '提现失败'])->label([1 => 'success', -1 => 'danger', 0 => 'default']); - $grid->is_pay('是否到账')->using(['否', '是']); + $grid->is_pay('是否到账')->using(['否', '是'])->label(['danger', 'success',]); $grid->created_at; $grid->filter(function (Grid\Filter $filter) { $filter->like('csInfo.name', '提现用户');