Bladeren bron

bugfix:会员复消SQL错误

kevin_zhangl 3 jaren geleden
bovenliggende
commit
b084f97156
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      frontendApi/modules/v1/controllers/ShopController.php

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

@@ -187,9 +187,9 @@ class ShopController extends BaseController {
         $isStudio = User::getEnCodeInfo(\Yii::$app->user->id)['IS_STUDIO'];
         $isStudio = User::getEnCodeInfo(\Yii::$app->user->id)['IS_STUDIO'];
         $condition = " AND STATUS=1";
         $condition = " AND STATUS=1";
         if($isStudio==1){
         if($isStudio==1){
-            $condition .= " AND  (FIND_IN_SET(4,GIFT_TYPE)>0";
+            $condition .= " AND  (FIND_IN_SET(4,GIFT_TYPE)>0)";
         }
         }
-        $condition.= ")";
+//        $condition.= ")";
 
 
         $data = ShopGoods::lists($condition, [], [
         $data = ShopGoods::lists($condition, [], [
             'orderBy' => 'SORT ASC,CREATED_AT DESC',
             'orderBy' => 'SORT ASC,CREATED_AT DESC',