作者 anyv

4

@@ -25,11 +25,11 @@ class SalesmangoodsController extends AdminBaseController{ @@ -25,11 +25,11 @@ class SalesmangoodsController extends AdminBaseController{
25 $keyword = $_POST['keyword']; 25 $keyword = $_POST['keyword'];
26 $where['book_name'] = ['like',"%$keyword%"]; 26 $where['book_name'] = ['like',"%$keyword%"];
27 } 27 }
28 - $data = Db::name('goods') -> group('book_name') -> where($where) -> paginate(1000000); 28 + $data = Db::name('goods') -> where($where) -> paginate(1000000);
29 $this -> assign('data',$data); 29 $this -> assign('data',$data);
30 return $this -> fetch(); 30 return $this -> fetch();
31 }else{ 31 }else{
32 - $data = Db::name('goods') -> group('book_name') -> where('type',2) -> paginate(12); 32 + $data = Db::name('goods') -> where('type',2) -> paginate(12);
33 $this -> assign('data',$data); 33 $this -> assign('data',$data);
34 return $this -> fetch(); 34 return $this -> fetch();
35 } 35 }
@@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController @@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
204 */ 204 */
205 public function checkWeChatUserLogin() 205 public function checkWeChatUserLogin()
206 { 206 {
207 - /*$user = Db::name('user')->where('id',2)->find();  
208 - cmf_update_current_user($user);*/ 207 + $user = Db::name('user')->where('id',28)->find();
  208 + cmf_update_current_user($user);
209 $userId = cmf_get_current_user_id(); 209 $userId = cmf_get_current_user_id();
210 if (empty($userId)) { 210 if (empty($userId)) {
211 $config = [ 211 $config = [