发票管理apiadmin
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.
 
 
 

41 lines
870 B

<?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 {
$InvoiceIssuanceService = new InvoiceIssuanceService();
$data = [
'pucode' => '',
'expire_time' => '',
'id' => ''
];
$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();
}
}