充值订单列表数据
This commit is contained in:
parent
ba9bc4a8aa
commit
02d4a29974
@ -44,7 +44,7 @@ class UserRechargeLists extends BaseAdminDataLists implements ListsSearchInterfa
|
|||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
return UserRecharge::where($this->searchWhere)
|
return UserRecharge::where($this->searchWhere)
|
||||||
->field(['id', 'uid', 'order_id', 'price', 'recharge_type', 'paid', 'pay_time'])
|
->field(['id', 'uid', 'order_id', 'price', 'recharge_type', 'paid', 'pay_time','status','refund_time'])
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
->select()->each(function ($item) {
|
->select()->each(function ($item) {
|
||||||
@ -54,6 +54,11 @@ class UserRechargeLists extends BaseAdminDataLists implements ListsSearchInterfa
|
|||||||
}else{
|
}else{
|
||||||
$item['pay_time']='';
|
$item['pay_time']='';
|
||||||
}
|
}
|
||||||
|
if($item['refund_time']>0){
|
||||||
|
$item['refund_time']=date('Y-m-d H:i:s',$item['pay_time']);
|
||||||
|
}else{
|
||||||
|
$item['refund_time']='';
|
||||||
|
}
|
||||||
if($item['paid']==1){
|
if($item['paid']==1){
|
||||||
$item['paid_name']='已充值';
|
$item['paid_name']='已充值';
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user