Commit 5912cac7 by 冷斌

推广

parent 0e073eed
...@@ -412,28 +412,42 @@ class UserAction extends CommonAction ...@@ -412,28 +412,42 @@ class UserAction extends CommonAction
//余额支付记录 //余额支付记录
protected function account_pay() protected function account_pay()
{ {
$map = ['uid' => $this->mid]; // $map = ['uid' => $this->mid];
//
$st = strtotime($_GET['st']) + 0; // $st = strtotime($_GET['st']) + 0;
$et = strtotime($_GET['et']) + 0; // $et = strtotime($_GET['et']) + 0;
if (!$st) { // if (!$st) {
$_GET['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) { $results = M('zy_split_balance_flow')->where([
$_GET['et'] = ''; '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']) { var_dump($sum, $results);
$map['ctime'][] = ['gt', $st]; die;
} $this->assign('num', $sum);
if ($_GET['et']) { $this->assign('data', $results);
$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);
} }
//余额申请提现页面 //余额申请提现页面
......
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