mirror of
https://gitee.com/yansongda/pay.git
synced 2024-11-29 18:58:38 +08:00
fix: #453
This commit is contained in:
parent
d7e4ae9314
commit
89a2a416bd
15
src/Plugin/Alipay/Fund/TransCommonQueryPlugin.php
Normal file
15
src/Plugin/Alipay/Fund/TransCommonQueryPlugin.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Plugin\Alipay\Fund;
|
||||
|
||||
use Yansongda\Pay\Plugin\Alipay\GeneralPlugin;
|
||||
|
||||
class TransCommonQueryPlugin extends GeneralPlugin
|
||||
{
|
||||
protected function getMethod(): string
|
||||
{
|
||||
return 'alipay.fund.trans.common.query';
|
||||
}
|
||||
}
|
15
src/Plugin/Alipay/Fund/TransTobankTransferPlugin.php
Normal file
15
src/Plugin/Alipay/Fund/TransTobankTransferPlugin.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yansongda\Pay\Plugin\Alipay\Fund;
|
||||
|
||||
use Yansongda\Pay\Plugin\Alipay\GeneralPlugin;
|
||||
|
||||
class TransTobankTransferPlugin extends GeneralPlugin
|
||||
{
|
||||
protected function getMethod(): string
|
||||
{
|
||||
return 'alipay.fund.trans.tobank.transfer';
|
||||
}
|
||||
}
|
@ -20,10 +20,16 @@ abstract class GeneralPlugin implements PluginInterface
|
||||
'biz_content' => $rocket->getParams(),
|
||||
]);
|
||||
|
||||
$this->doSomething($rocket);
|
||||
|
||||
Logger::info('[alipay][GeneralPlugin] 通用插件装载完毕', ['rocket' => $rocket]);
|
||||
|
||||
return $next($rocket);
|
||||
}
|
||||
|
||||
protected function doSomething(Rocket $rocket): void
|
||||
{
|
||||
}
|
||||
|
||||
abstract protected function getMethod(): string;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user