Pārlūkot izejas kodu

升级分期商品修改

kevin 1 gadu atpakaļ
vecāks
revīzija
cd062bd527

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

@@ -397,7 +397,7 @@ class UserController extends BaseController {
         } else if ($stage == 1000) {
             $query_condition.= ") AND (INSTALMENT = :INSTALMENT)";
         } else {
-            $query_condition.= ") OR (INSTALMENT <= :INSTALMENT)";
+            $query_condition.= ") AND (INSTALMENT <= :INSTALMENT)";
         }
 
         $allGoods = ShopGoods::find()->where("STATUS=1 AND CATEGORY_TYPE=1 " . $query_condition, [':INSTALMENT' => $stage])->orderBy('SORT ASC')->asArray()->all();