This commit is contained in:
2021-01-29 16:53:37 +08:00
parent 81a6d17ce0
commit 6de6f5960c
2 changed files with 25 additions and 0 deletions

View File

@@ -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([