|
@@ -3,21 +3,17 @@ |
|
@@ -3,21 +3,17 @@ |
|
3
|
namespace Lackoxygen\Customs;
|
3
|
namespace Lackoxygen\Customs;
|
|
4
|
|
4
|
|
|
5
|
use Lackoxygen\Customs\Request\PayExInfo;
|
5
|
use Lackoxygen\Customs\Request\PayExInfo;
|
|
6
|
-use Lackoxygen\Customs\Utils\Trigger;
|
|
|
|
7
|
|
6
|
|
|
8
|
class Customs
|
7
|
class Customs
|
|
9
|
{
|
8
|
{
|
|
10
|
/**
|
9
|
/**
|
|
11
|
- * @param callable $func
|
10
|
+ * @param PayExInfo $payExInfo
|
|
12
|
*
|
11
|
*
|
|
13
|
* @return string
|
12
|
* @return string
|
|
14
|
* @throws Exception\Exception
|
13
|
* @throws Exception\Exception
|
|
15
|
*/
|
14
|
*/
|
|
16
|
- public function report(callable $func)
|
15
|
+ public function report(PayExInfo $payExInfo)
|
|
17
|
{
|
16
|
{
|
|
18
|
- $payExInfo = PayExInfo::make();
|
|
|
|
19
|
- Trigger::closure($func, $payExInfo);
|
|
|
|
20
|
-
|
|
|
|
21
|
return Client::request($payExInfo);
|
17
|
return Client::request($payExInfo);
|
|
22
|
}
|
18
|
}
|
|
23
|
} |
19
|
} |