Commit 66d20b97 authored by hujun's avatar hujun

//

parent 58334147
......@@ -79,7 +79,8 @@ class Coupon extends Basic{
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function couponList() {
public function couponList()
{
$page_no = empty($this->params['page_no']) ? 1 : $this->params['page_no'];
$page_size = empty($this->params['page_size']) ? 15 : $this->params['page_size'];
if (empty($this->userId)) {
......@@ -87,7 +88,7 @@ class Coupon extends Basic{
}
$data = [];
$where['user_id'] = $this->userId;
$where['user_id'] = 1;
// $where['user_id'] = 1;
$field = 'rule_no,activity_id,status,create_time';
$list = $this->m_coupon->getList($page_no, $page_size, 'id desc', $field, $where);
$field_activity = 'title,money,use_period';
......
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