|
|
|
@ -176,8 +176,91 @@ class wxpay |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
$directory = 'helpers/dalianpay'; // 替换为您要包含文件的目录路径 |
|
|
|
$this->includeDirectory($directory); |
|
|
|
$directory = 'helpers/dalianpay/demo'; // 替换为您要包含文件的目录路径 |
|
|
|
// $this->includeDirectory($directory); |
|
|
|
// 打开目录 |
|
|
|
if ($handle = opendir($directory)) { |
|
|
|
// 遍历目录中的文件和目录 |
|
|
|
while (($file = readdir($handle)) !== false) { |
|
|
|
// 排除当前目录(.)和上级目录(..) |
|
|
|
if ($file != '.' && $file != '..') { |
|
|
|
// 检查文件是否为 PHP 文件 |
|
|
|
if (pathinfo($file, PATHINFO_EXTENSION) === 'php') { |
|
|
|
// 构建文件的完整路径 |
|
|
|
$filePath = $directory . '/' . $file; |
|
|
|
// 包含 PHP 文件 |
|
|
|
include_once $filePath; |
|
|
|
echo $filePath . '\n\r'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 关闭目录句柄 |
|
|
|
closedir($handle); |
|
|
|
} |
|
|
|
|
|
|
|
$directory = 'helpers/dalianpay/cert'; // 替换为您要包含文件的目录路径 |
|
|
|
// $this->includeDirectory($directory); |
|
|
|
// 打开目录 |
|
|
|
if ($handle = opendir($directory)) { |
|
|
|
// 遍历目录中的文件和目录 |
|
|
|
while (($file = readdir($handle)) !== false) { |
|
|
|
// 排除当前目录(.)和上级目录(..) |
|
|
|
if ($file != '.' && $file != '..') { |
|
|
|
// 构建文件的完整路径 |
|
|
|
$filePath = $directory . '/' . $file; |
|
|
|
// 包含 PHP 文件 |
|
|
|
include_once $filePath; |
|
|
|
echo $filePath . '\n\r'; |
|
|
|
} |
|
|
|
} |
|
|
|
// 关闭目录句柄 |
|
|
|
closedir($handle); |
|
|
|
} |
|
|
|
|
|
|
|
$directory = 'helpers/dalianpay/config'; // 替换为您要包含文件的目录路径 |
|
|
|
// $this->includeDirectory($directory); |
|
|
|
// 打开目录 |
|
|
|
if ($handle = opendir($directory)) { |
|
|
|
// 遍历目录中的文件和目录 |
|
|
|
while (($file = readdir($handle)) !== false) { |
|
|
|
// 排除当前目录(.)和上级目录(..) |
|
|
|
if ($file != '.' && $file != '..') { |
|
|
|
// 检查文件是否为 PHP 文件 |
|
|
|
if (pathinfo($file, PATHINFO_EXTENSION) === 'php') { |
|
|
|
// 构建文件的完整路径 |
|
|
|
$filePath = $directory . '/' . $file; |
|
|
|
// 包含 PHP 文件 |
|
|
|
include_once $filePath; |
|
|
|
echo $filePath . '\n\r'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 关闭目录句柄 |
|
|
|
closedir($handle); |
|
|
|
} |
|
|
|
|
|
|
|
$directory = 'helpers/dalianpay/library'; // 替换为您要包含文件的目录路径 |
|
|
|
// $this->includeDirectory($directory); |
|
|
|
// 打开目录 |
|
|
|
if ($handle = opendir($directory)) { |
|
|
|
// 遍历目录中的文件和目录 |
|
|
|
while (($file = readdir($handle)) !== false) { |
|
|
|
// 排除当前目录(.)和上级目录(..) |
|
|
|
if ($file != '.' && $file != '..') { |
|
|
|
// 检查文件是否为 PHP 文件 |
|
|
|
if (pathinfo($file, PATHINFO_EXTENSION) === 'php') { |
|
|
|
// 构建文件的完整路径 |
|
|
|
$filePath = $directory . '/' . $file; |
|
|
|
// 包含 PHP 文件 |
|
|
|
include_once $filePath; |
|
|
|
echo $filePath . '\n\r'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 关闭目录句柄 |
|
|
|
closedir($handle); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// require_once(BASE_PATH . 'helpers/dalianpay/demo/dalianpay.php'); |
|
|
|
// include_once(BASE_PATH . "../plugins/payment/dalianpay/demo/dalianpay.php"); |
|
|
|
|