Customs.php
431 字节
<?php
namespace Lackoxygen\Customs;
use Lackoxygen\Customs\Request\PayExInfo;
use Lackoxygen\Customs\Utils\Trigger;
class Customs
{
/**
* @param callable $func
*
* @return string
* @throws Exception\Exception
*/
public function report(callable $func)
{
$payExInfo = PayExInfo::make();
Trigger::closure($func, $payExInfo);
return Client::request($payExInfo);
}
}