文件
xionggeshop/addons/shopro_huifu/command/OnboardPoll.php
可乐加冰 abc40ef2a9 feat(huifu): 支持汇付进件通过后更换结算银行卡
- 用户端及后台管理端新增更换结算卡接口与页面交互
- 服务层实现换卡核心逻辑、参数校验及汇付接口调用
- 增加换卡异步通知处理与定时轮询补偿以同步审核状态
- 完善进件状态网关,补充换卡审核状态及驳回原因等字段
2026-11-15 00:52:59 +08:00

27 行
764 B
PHP

<?php
namespace addons\shopro_huifu\command;
use addons\shopro_huifu\library\onboard\HuifuOnboardService;
use think\console\Command;
use think\console\Input;
use think\console\Output;
class OnboardPoll extends Command
{
protected function configure()
{
$this->setName('shopro_huifu:onboard-poll')
->setDescription('Poll pending Huifu personal onboard applications');
}
protected function execute(Input $input, Output $output)
{
$service = new HuifuOnboardService();
$count = $service->pollPending(100);
$cardCount = $service->pollCardModifyPending(100);
$output->writeln('Polled onboard records: ' . $count);
$output->writeln('Polled card-modify records: ' . $cardCount);
}
}