17 lines
453 B
PHP
17 lines
453 B
PHP
<?php
|
|
namespace addon\dividemoney\event;
|
|
use addon\dividemoney\model\DividemoneyAccount;
|
|
class DivideMoneyAccounts
|
|
{
|
|
public function handle($param = [])
|
|
{
|
|
try {
|
|
if (in_array($param['pay_type'], ['wechatpay', 'alipay','cywechatpay','cyalipay','BALANCE'])) {
|
|
return (new DividemoneyAccount())->getBingAccountList($param);
|
|
}
|
|
} catch (\Exception $e) {
|
|
return [];
|
|
}
|
|
}
|
|
}
|