付款记录
This commit is contained in:
@@ -9,6 +9,7 @@ use app\common\model\SysAccount;
|
||||
use app\common\model\SysCurrency;
|
||||
use app\common\model\SysDictItem;
|
||||
use app\common\model\User;
|
||||
use app\common\service\OssService;
|
||||
use app\common\traits\crud\CrudControllerTrait;
|
||||
use app\common\service\FinPaymentApplyService;
|
||||
|
||||
@@ -43,8 +44,19 @@ class FinPaymentApplyController extends BaseController
|
||||
$data['country_name'] = Country::where('id', $data['country_id'])->first()->cn_addr;
|
||||
if (isset($data['currency_id'])) //付款币种
|
||||
$data['currency_name'] = SysCurrency::where('id', $data['currency_id'])->first()->currency_name;
|
||||
if (isset($data['submit_files']))
|
||||
$OssService = new OssService();
|
||||
if (isset($data['submit_files'])){
|
||||
$data['submit_files'] = json_decode($data['submit_files'], true);
|
||||
foreach ($data['submit_files'] as $key => $value) {
|
||||
$data['submit_files'][$key] = [
|
||||
'file_src' => $value['file_src'],
|
||||
'file_full' => $OssService->generatePrivateUrl($value['file_src']),
|
||||
'file_name' => $value['file_name'],
|
||||
];
|
||||
}
|
||||
}
|
||||
if (isset($data['voucher_file']))
|
||||
$data['voucher_file_full'] = $OssService->generatePrivateUrl($data['voucher_file']);
|
||||
if (isset($data['created_at']))
|
||||
$data['created_at'] = date('Y-m-d H:i:s', $data['created_at']);
|
||||
if (isset($data['updated_at']))
|
||||
|
||||
Reference in New Issue
Block a user