作者 anyv

4

... ... @@ -25,11 +25,11 @@ class SalesmangoodsController extends AdminBaseController{
$keyword = $_POST['keyword'];
$where['book_name'] = ['like',"%$keyword%"];
}
$data = Db::name('goods') -> group('book_name') -> where($where) -> paginate(1000000);
$data = Db::name('goods') -> where($where) -> paginate(1000000);
$this -> assign('data',$data);
return $this -> fetch();
}else{
$data = Db::name('goods') -> group('book_name') -> where('type',2) -> paginate(12);
$data = Db::name('goods') -> where('type',2) -> paginate(12);
$this -> assign('data',$data);
return $this -> fetch();
}
... ...
... ... @@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
*/
public function checkWeChatUserLogin()
{
/*$user = Db::name('user')->where('id',2)->find();
cmf_update_current_user($user);*/
$user = Db::name('user')->where('id',28)->find();
cmf_update_current_user($user);
$userId = cmf_get_current_user_id();
if (empty($userId)) {
$config = [
... ...