大更新,1投稿系统参考文献的类型增加功能,,,2官网数据库功能
This commit is contained in:
@@ -8,11 +8,12 @@ class mysftp {
|
||||
|
||||
public function push(Job $job, $data){
|
||||
$job->delete();
|
||||
//链接sftp服务器
|
||||
$config['host'] = 'ftp.portico.org';
|
||||
$config['port'] = 22;
|
||||
$config['username'] = "TMR";
|
||||
$config['password'] = "h6EHD8";
|
||||
//链接sftp服务器(凭证走 dbpush 配置,历史值兜底)
|
||||
$cred = config('dbpush.credentials.portico');
|
||||
$config['host'] = isset($cred['host']) ? $cred['host'] : 'ftp.portico.org';
|
||||
$config['port'] = isset($cred['port']) ? $cred['port'] : 22;
|
||||
$config['username'] = isset($cred['user']) ? $cred['user'] : "TMR";
|
||||
$config['password'] = isset($cred['pass']) ? $cred['pass'] : "h6EHD8";
|
||||
$sftp_obj = new Sftp($config);
|
||||
$sftp_obj->upftp($data['local'],$data['remote']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user