优化:提现管理 - 导出信息优化显示

This commit is contained in:
wuhui_zzw 2024-04-08 14:15:13 +08:00
parent cb7a65bbf5
commit f04923e13a
2 changed files with 8 additions and 26 deletions

View File

@ -723,7 +723,7 @@ class ExcelService
'支付宝',
'微信零钱',
];
$header = ['用户名','用户UID','提现金额','余额','审核状态','拒绝理由','提现方式','转账信息'];
$header = ['用户名','用户UID','提现金额','余额','审核状态','拒绝理由','提现方式','微信号','支付宝号','收款二维码地址','账户类型','持卡人','开户行','银行卡号'];
$filename = '提现申请_'.time();
$path = 'extract';
$export = [];
@ -731,24 +731,6 @@ class ExcelService
$count = $query->count();
$list = $query->page($page, $limit)->select();
foreach ($list as $item) {
$acount = '';
if ($item->extract_type == 0) {
if($item->bank_name) $acount .= '银行名称:'.$item->bank_name."";
if($item->bank_type == 1) $acount .= '账户类型:企业账户;';
else $acount .= '账户类型:个人账户;';
$acount .= '银行地址:'.$item->bank_address."";
$acount .= '银行卡号:'.$item->bank_code;
}
if ($item->extract_type == 2) {
if($item->wechat) $acount .= '微信号:'.$item->wechat."";
$acount .= '收款二维码地址:'.$item->extract_pic;
}
if ($item->extract_type == 1) {
if($item->alipay) $acount .= '支付宝号:'.$item->alipay."";
$acount .= '收款二维码地址:'.$item->extract_pic;
}
$export[] = [
$item->real_name,
$item->uid,
@ -757,7 +739,13 @@ class ExcelService
$item->status == 1 ? '通过' : ($item->status == 0 ? '待审核' : '拒绝'),
$item->fail_msg,
$type[$item->extract_type],
$acount,
$item->wechat,
$item->alipay,
$item->extract_pic ?? '',
$item->extract_type == 0 ? ($item->bank_type == 1 ? '企业账户' : '个人账户') : '',
$item->real_name ?? '',
$item->bank_address ?? '',
$item->bank_code ?? ''
];
}
$foot = '';

View File

@ -469,12 +469,6 @@ Route::group('api/', function () {
Route::get('getInviteInfo', '/inviteCodeInfo');
Route::get('invitePayment', '/inviteCodePayment');
Route::get('inviteUse', '/inviteUse');
})->prefix('api.user.Svip');
//社区
Route::group('community', function () {