You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
<?php
|
|
declare (strict_types=1);
|
|
|
|
namespace app\controller\api;
|
|
|
|
use app\service\invoice\InvoiceIssuanceService;
|
|
use app\service\webService\FeeService;
|
|
use fast\FuncException;
|
|
|
|
class Test extends Base
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
try {
|
|
|
|
$data = [
|
|
'pucode' => '',
|
|
'expire_time' => '',
|
|
'id' => ''
|
|
];
|
|
|
|
$InvoiceIssuanceService = new InvoiceIssuanceService();
|
|
|
|
$result = $InvoiceIssuanceService->IssueAnInvoice($data);
|
|
|
|
if ($result !== true) {
|
|
throw new FuncException($result);
|
|
}
|
|
} catch (\Exception $e) {
|
|
dump($e);die;
|
|
}
|
|
}
|
|
|
|
|
|
public function getWechatData()
|
|
{
|
|
$pucode = '41108008';
|
|
$FeeService = new FeeService($pucode);
|
|
return $FeeService->getUsers();
|
|
}
|
|
|
|
/*
|
|
*
|
|
* ^ array:3 [▼
|
|
"code" => "200"
|
|
"message" => "申请成功"
|
|
"pzsqkjYcxxList" => array:1 [▼
|
|
"pzsqkjYcxxVO" => array:4 [▼
|
|
"bdznsrsbh" => "91440300772709730N"
|
|
"yhbm" => "41107394"
|
|
"assetID" => "BC664422394E9D115C730C58AEB7BD7B"
|
|
"typeID" => "A0A35204362E8C26B40E8609C66090C2"
|
|
]
|
|
]
|
|
]
|
|
*
|
|
*/
|
|
}
|
|
|