Ver Fonte

会员端隐藏删除的订单

kevin_zhangl há 3 anos atrás
pai
commit
ef7af681b7
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      frontendApi/modules/v1/controllers/ShopController.php

+ 1 - 1
frontendApi/modules/v1/controllers/ShopController.php

@@ -321,7 +321,7 @@ class ShopController extends BaseController {
      */
     public function actionOrderList() {
         $uname = Info::getUserNameByUserId(\Yii::$app->user->id);
-        $condition = " (USER_ID=:USER_ID OR CREATE_USER='$uname')";
+        $condition = " (USER_ID=:USER_ID OR CREATE_USER='$uname') AND O.IS_DELETE = 0";
         $params[':USER_ID'] = \Yii::$app->user->id;
         $orderQuery = Order::find()
             ->alias('O')