Explorar o código

bugfix:会员复消SQL错误

kevin_zhangl %!s(int64=3) %!d(string=hai) anos
pai
achega
b084f97156
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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'];
         $condition = " AND STATUS=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, [], [
             'orderBy' => 'SORT ASC,CREATED_AT DESC',