Ver Fonte

升级分期商品修改

kevin há 1 ano atrás
pai
commit
cd062bd527
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      frontendApi/modules/v1/controllers/UserController.php

+ 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();