瀏覽代碼

order list

NoteStar 5 年之前
父節點
當前提交
322b77b867
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      vendor/fancyecommerce/fecshop/app/appapi/modules/V1/controllers/OrderController.php

+ 4 - 0
vendor/fancyecommerce/fecshop/app/appapi/modules/V1/controllers/OrderController.php

@@ -25,11 +25,15 @@ class OrderController extends AppapiTokenController
     public function actionList(){
 
         $page = Yii::$app->request->get('page');
+        $order_id = Yii::$app->request->get('order_id');
         $page = $page ? $page : 1;
+        $order_id = $order_id ? $order_id : 1;
+        $where = ['>', 'order_id', $order_id];
         $filter = [
             'numPerPage'    => $this->numPerPage,
             'pageNum'       => $page,
             'asArray'       => true,
+            'where'       => $where,
         ];
         $data  = Yii::$service->order->getorderinfocoll($filter);
         $coll  = $data['coll'];