NoteStar 5 lat temu
rodzic
commit
322b77b867

+ 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'];