...
|
...
|
@@ -208,12 +208,15 @@ class Car extends Base |
|
|
*/
|
|
|
public function selectorder(){
|
|
|
$is_pay=$this->request->param("is_pay"); //是否支付:1=已支付,2=未支付,3=已退款,4=已取消
|
|
|
$page=$this->request->param("page");
|
|
|
$total=$this->request->param("total");
|
|
|
$w['user_id'] = $this->auth->id;
|
|
|
if ($is_pay){
|
|
|
$w['is_pay'] = $is_pay;
|
|
|
}
|
|
|
$res=Db::name("order")
|
|
|
->where($w)
|
|
|
->limit($page,$total)
|
|
|
->select();
|
|
|
return $this->success("请求成功",$res);
|
|
|
}
|
...
|
...
|
|