Commit 5912cac7 by 冷斌

推广

parent 0e073eed
......@@ -412,28 +412,42 @@ class UserAction extends CommonAction
//余额支付记录
protected function account_pay()
{
$map = ['uid' => $this->mid];
$st = strtotime($_GET['st']) + 0;
$et = strtotime($_GET['et']) + 0;
if (!$st) {
$_GET['st'] = '';
}
// $map = ['uid' => $this->mid];
//
// $st = strtotime($_GET['st']) + 0;
// $et = strtotime($_GET['et']) + 0;
// if (!$st) {
// $_GET['st'] = '';
// }
//
// if (!$et) {
// $_GET['et'] = '';
// }
//
// if ($_GET['st']) {
// $map['ctime'][] = ['gt', $st];
// }
// if ($_GET['et']) {
// $map['ctime'][] = ['lt', $et];
// }
// $data = D('ZyOrderCourse', 'course')->where($map)->order('ctime DESC,id DESC')->findPage(12);
// $total = D('ZyOrderCourse', 'course')->where(['uid' => $this->mid])->sum('price');
// $this->assign('data', $data);
// $this->assign('total', $total);
if (!$et) {
$_GET['et'] = '';
}
$results = M('zy_split_balance_flow')->where([
'uid' => $this->mid,
['!=', 'type' , 5]
])->order('ctime desc')->findAll();
$sum = M('zy_split_balance_flow')->where([
'uid' => $this->mid,
['!=', 'type' , 5]
])->sum('num');
if ($_GET['st']) {
$map['ctime'][] = ['gt', $st];
}
if ($_GET['et']) {
$map['ctime'][] = ['lt', $et];
}
$data = D('ZyOrderCourse', 'course')->where($map)->order('ctime DESC,id DESC')->findPage(12);
$total = D('ZyOrderCourse', 'course')->where(['uid' => $this->mid])->sum('price');
$this->assign('data', $data);
$this->assign('total', $total);
var_dump($sum, $results);
die;
$this->assign('num', $sum);
$this->assign('data', $results);
}
//余额申请提现页面
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment