53 lines
1.4 KiB
PHP
53 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace app\admin\controller\withdraw;
|
|
|
|
use app\admin\logic\withdraw\WithdrawLogic;
|
|
use app\common\basics\AdminBase;
|
|
use app\common\server\JsonServer;
|
|
|
|
class Withdraw extends AdminBase
|
|
{
|
|
public function Lists()
|
|
{
|
|
|
|
if ($this->request->isAjax()) {
|
|
$get = $this->request->get();
|
|
$data = WithdrawLogic::lists($get);
|
|
return JsonServer::success('', $data, 1);
|
|
}
|
|
$today = [
|
|
date('Y-m-d H:i:s', strtotime(date("Y-m-d", time()))),
|
|
date('Y-m-d H:i:s', strtotime(date("Y-m-d", time())) + 86399)
|
|
];
|
|
|
|
$yesterday = [
|
|
date('Y-m-d H:i:s', strtotime(date("Y-m-d", strtotime("-1 day")))),
|
|
date('Y-m-d H:i:s', strtotime(date("Y-m-d", strtotime("-1 day"))) + 86399)
|
|
];
|
|
|
|
|
|
$days_ago7 = [
|
|
date('Y-m-d H:i:s', strtotime(date("Y-m-d", strtotime("-7 day")))),
|
|
date('Y-m-d 23:59:59', time())
|
|
];
|
|
|
|
$days_ago30 = [
|
|
date('Y-m-d 00:00:00', strtotime("-30 day")),
|
|
date('Y-m-d 23:59:59', time())
|
|
];
|
|
$summary = WithdrawLogic::summary();
|
|
|
|
return view('',
|
|
array(
|
|
'today' => $today,
|
|
'yesterday' => $yesterday,
|
|
'days_ago7' => $days_ago7,
|
|
'days_ago30' => $days_ago30,
|
|
'summary'=>$summary
|
|
)
|
|
);
|
|
|
|
}
|
|
|
|
} |