From 6de6f5960c02830ba212d4f8fc52409a87aa28c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=84=E5=B0=98?= <122383162@qq.com> Date: Fri, 29 Jan 2021 16:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/SkyxuController.php | 9 +++++++++ config/unionpay.php | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/app/Http/Controllers/SkyxuController.php b/app/Http/Controllers/SkyxuController.php index 46c02f8..61452e3 100644 --- a/app/Http/Controllers/SkyxuController.php +++ b/app/Http/Controllers/SkyxuController.php @@ -5,6 +5,7 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; use League\Flysystem\Sftp\SftpAdapter; use League\Flysystem\Filesystem; +use XuanChen\UnionPay\Check; class SkyxuController extends Controller { @@ -16,6 +17,14 @@ class SkyxuController extends Controller */ public function sftp() { + $app = app('xuanchen.unionpay.check'); + $app->date = '20190722'; + $app->login(); + $app->hasFile(); + $app->start(); + dump($app->msg); + + die(); $path = '/home/wwwroot/pingan/upload/'; $name = 'JYMX66007320190722.txt'; $adapter = new SftpAdapter([ diff --git a/config/unionpay.php b/config/unionpay.php index 441a133..a970293 100644 --- a/config/unionpay.php +++ b/config/unionpay.php @@ -5,6 +5,22 @@ return [ 'this_type' => 'test', //添加日志 'log' => true, + //对账单信息 + 'check' => [ + 'sftpadapter' => [ + 'host' => 'localhost',//地址 + 'port' => 22,//端口 + 'username' => 'root', //账号 + 'password' => 'Anetadmin1',//密码 + 'privateKey' => '', + 'passphrase' => '', + 'root' => '/home/wwwroot/pingan/upload/',//路径 + 'timeout' => 10,//超时时间 + 'directoryPerm' => 0755, + ], + 'type' => 'JYMX', + 'file_type' => 'txt', + ], //获取微信侧的优惠券 'unionpay_url' => [ 'test' => [