微调
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use League\Flysystem\Sftp\SftpAdapter;
|
use League\Flysystem\Sftp\SftpAdapter;
|
||||||
use League\Flysystem\Filesystem;
|
use League\Flysystem\Filesystem;
|
||||||
|
use XuanChen\UnionPay\Check;
|
||||||
|
|
||||||
class SkyxuController extends Controller
|
class SkyxuController extends Controller
|
||||||
{
|
{
|
||||||
@@ -16,6 +17,14 @@ class SkyxuController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function sftp()
|
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/';
|
$path = '/home/wwwroot/pingan/upload/';
|
||||||
$name = 'JYMX66007320190722.txt';
|
$name = 'JYMX66007320190722.txt';
|
||||||
$adapter = new SftpAdapter([
|
$adapter = new SftpAdapter([
|
||||||
|
|||||||
@@ -5,6 +5,22 @@ return [
|
|||||||
'this_type' => 'test',
|
'this_type' => 'test',
|
||||||
//添加日志
|
//添加日志
|
||||||
'log' => true,
|
'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' => [
|
'unionpay_url' => [
|
||||||
'test' => [
|
'test' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user