chore(addon): 添加线下支付及华为支付基本配置
This commit is contained in:
26
src/addon/huaweipay/event/PayTransfer.php
Normal file
26
src/addon/huaweipay/event/PayTransfer.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* 华为支付转账处理
|
||||
*/
|
||||
|
||||
namespace addon\huaweipay\event;
|
||||
|
||||
use addon\huaweipay\model\Pay as PayModel;
|
||||
|
||||
/**
|
||||
* 支付转账
|
||||
*/
|
||||
class PayTransfer
|
||||
{
|
||||
/**
|
||||
* 支付转账处理
|
||||
*/
|
||||
public function handle($param)
|
||||
{
|
||||
if ($param[ "pay_type" ] == "huaweipay") {
|
||||
$pay_model = new PayModel($param[ 'site_id' ]);
|
||||
$res = $pay_model->transfer($param);
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user