- 用户端及后台管理端新增更换结算卡接口与页面交互 - 服务层实现换卡核心逻辑、参数校验及汇付接口调用 - 增加换卡异步通知处理与定时轮询补偿以同步审核状态 - 完善进件状态网关,补充换卡审核状态及驳回原因等字段
27 行
764 B
PHP
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);
|
|
}
|
|
}
|