正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -208,12 +208,15 @@ class Car extends Base | @@ -208,12 +208,15 @@ class Car extends Base | ||
208 | */ | 208 | */ |
209 | public function selectorder(){ | 209 | public function selectorder(){ |
210 | $is_pay=$this->request->param("is_pay"); //是否支付:1=已支付,2=未支付,3=已退款,4=已取消 | 210 | $is_pay=$this->request->param("is_pay"); //是否支付:1=已支付,2=未支付,3=已退款,4=已取消 |
211 | + $page=$this->request->param("page"); | ||
212 | + $total=$this->request->param("total"); | ||
211 | $w['user_id'] = $this->auth->id; | 213 | $w['user_id'] = $this->auth->id; |
212 | if ($is_pay){ | 214 | if ($is_pay){ |
213 | $w['is_pay'] = $is_pay; | 215 | $w['is_pay'] = $is_pay; |
214 | } | 216 | } |
215 | $res=Db::name("order") | 217 | $res=Db::name("order") |
216 | ->where($w) | 218 | ->where($w) |
219 | + ->limit($page,$total) | ||
217 | ->select(); | 220 | ->select(); |
218 | return $this->success("请求成功",$res); | 221 | return $this->success("请求成功",$res); |
219 | } | 222 | } |
-
请 注册 或 登录 后发表评论