添加引导安装程序

This commit is contained in:
技术老胡
2024-11-26 15:43:31 +08:00
parent adf37650e6
commit 90b3b70dfb
7 changed files with 454 additions and 48 deletions

View File

@@ -22,17 +22,7 @@ class IndexController
}
public function test()
{
$info = request()->post();
$action = isset($info['action']) ? $info['action'] : '';
if ($action === 'mpay') {
$data = json_decode($info['data'], true);
$config = \think\facade\Config::load("payconfig/{$data['pid']}_{$data['aid']}", 'payconfig');
$payclient_path = "\\payclient\\{$config['pay']['payclass']}";
$Payclient = new $payclient_path($info, $config);
$res = $Payclient->notify();
return $res;
} else {
return 202;
}
return app()->getBasePath();
}
}