Commit e9ea58f5 by 冷斌

fix bug

parent 30e50e7d
......@@ -15,7 +15,7 @@ class GiftController extends AdminbaseController {
$gift_sort[0]="默认分类";
$this->assign('gift_sort', $gift_sort); */
$gift_model=M("gift")->where('channel = 0');
$gift_model=M("gift")->where(['channel' => '0']);
$count=$gift_model->count();
$page = $this->page($count, 20);
$lists = $gift_model
......@@ -37,7 +37,7 @@ class GiftController extends AdminbaseController {
$gift_sort[0]="默认分类";
$this->assign('gift_sort', $gift_sort); */
$gift_model=M("gift")->where('channel = 1');
$gift_model=M("gift")->where(['channel' => '1']);
$count=$gift_model->count();
$page = $this->page($count, 20);
$lists = $gift_model
......
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