feat(withdraw): 落地方案B一体化商城余额提现与手续费内扣模式,完善多端打款退款与对账闭环
这个提交包含在:
18
tests/test_action_begin.php
普通文件
18
tests/test_action_begin.php
普通文件
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
define('APP_PATH', __DIR__ . '/../application/');
|
||||
define('ROOT_PATH', __DIR__ . '/../');
|
||||
require_once ROOT_PATH . 'thinkphp/base.php';
|
||||
require_once ROOT_PATH . 'thinkphp/helper.php';
|
||||
\think\Config::set(\think\Config::load(APP_PATH . 'config.php'));
|
||||
\think\Config::set(include APP_PATH . 'database.php', 'database');
|
||||
\think\Loader::addNamespace('app', APP_PATH);
|
||||
require_once ROOT_PATH . 'addons/epay/Epay.php';
|
||||
|
||||
$epay = new \addons\epay\Epay();
|
||||
$epay->actionBegin();
|
||||
|
||||
echo "Class Yansongda\\Pay\\Pay: " . (class_exists('\\Yansongda\\Pay\\Pay') ? 'YES' : 'NO') . PHP_EOL;
|
||||
|
||||
$cfg = get_addon_config('epay');
|
||||
echo "epay version: " . ($cfg['version'] ?? 'not set') . PHP_EOL;
|
||||
echo "PHP version: " . PHP_VERSION . PHP_EOL;
|
||||
在新工单中引用
屏蔽一个用户