正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
@@ -75,7 +75,9 @@ class OrderSalesmanController extends WeChatBaseController | @@ -75,7 +75,9 @@ class OrderSalesmanController extends WeChatBaseController | ||
75 | $where['school'] = ['eq',$param['school']]; | 75 | $where['school'] = ['eq',$param['school']]; |
76 | } | 76 | } |
77 | if(!empty($param['grade'])){ | 77 | if(!empty($param['grade'])){ |
78 | - $where['grade'] = ['eq',$param['grade']]; | 78 | + $param['grade'] = explode('—',$param['grade']); |
79 | + $where['grade'] = ['eq',$param['grade'][0]]; | ||
80 | + $where['class'] = ['eq',$param['grade'][1]]; | ||
79 | } | 81 | } |
80 | if(!empty($param['state'])){ | 82 | if(!empty($param['state'])){ |
81 | $where['state'] = ['eq',$param['state']]; | 83 | $where['state'] = ['eq',$param['state']]; |
@@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController | @@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController | ||
204 | */ | 204 | */ |
205 | public function checkWeChatUserLogin() | 205 | public function checkWeChatUserLogin() |
206 | { | 206 | { |
207 | -// $user = Db::name('user')->where('id',4)->find(); | 207 | +// $user = Db::name('user')->where('id',5)->find(); |
208 | // cmf_update_current_user($user); | 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)) { |
-
请 注册 或 登录 后发表评论