feat: 初始化雄戈商城服务端代码与Webhook自动部署配置
这个提交包含在:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace addons\shopro_huifu\command;
|
||||
|
||||
use addons\shopro_huifu\library\Installer;
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\Output;
|
||||
|
||||
class InstallFull extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('shopro_huifu:install')
|
||||
->setAliases(['shopro_huifu:install-full'])
|
||||
->setDescription('Full install: copy admin files, run SQL, create menus');
|
||||
}
|
||||
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$output->writeln('=== Shopro Huifu 一键安装 ===');
|
||||
try {
|
||||
Installer::run($output);
|
||||
$output->writeln('');
|
||||
$output->writeln('请执行 php think shopro_huifu:verify 复查');
|
||||
$output->writeln('后台菜单: 系统管理 -> 商城配置 -> 汇付支付配置');
|
||||
$output->writeln('直达: /admin/shopro_huifu/config');
|
||||
} catch (\Throwable $e) {
|
||||
$output->error($e->getMessage());
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户