This commit is contained in:
wanyongkang
2020-10-13 09:38:55 +08:00
parent 517b026891
commit 7d7d8f09ad
5 changed files with 245 additions and 102 deletions

View File

@@ -1,4 +1,12 @@
<?php
/*
* @Author: your name
* @Date: 2020-10-10 13:58:14
* @LastEditTime: 2020-10-12 11:15:09
* @LastEditors: your name
* @Description: In User Settings Edit
* @FilePath: /phptest/app/order/controller/Index.php
*/
namespace app\order\controller;
@@ -26,4 +34,24 @@ class Index extends Controller
}
}
//获取记录
public function getData()
{
$cash = new CashMoedl;
$list = $cash->getListPage([],'username,money,apply_reason,alipay_account,status,create_time');
//提现状态
$status = ['待处理', '提现成功', '提现未成功'];
foreach ($list as &$v) {
$v['status'] = $status[$v['status']];
$v['alipay_account'] = substr($v['alipay_account'], 0, 3) . '***' . substr($v['alipay_account'], -5);
}
$count = $cash->getCount();
$data = [
'Code' => 10000,
'count' => $count['count'],
'data' => $list,
];
echo json_encode($data);
}
}