添加发票
This commit is contained in:
@@ -102,6 +102,7 @@ class Invoice extends ApiBase
|
||||
])->where('uid', $uid)->paginate(10);
|
||||
$data = [];
|
||||
if ($list != null){
|
||||
$currentDomain = $_SERVER['HTTP_HOST'];
|
||||
foreach ($list as $value){
|
||||
$data[] = [
|
||||
'id' => $value['id'],
|
||||
@@ -111,6 +112,7 @@ class Invoice extends ApiBase
|
||||
'invoice_title' => $value['invoice']['invoice_title'],
|
||||
'order_sn' => $value['order']['order_sn'] ?? '',
|
||||
'order_money' => $value['order']['settle_amount'] ?? 0,
|
||||
'document' => "https://".$currentDomain."/public/".$value['document'] ?? '',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user