Przeglądaj źródła

update: 更新索引条件错误

shizhongqi 5 miesięcy temu
rodzic
commit
acbc0d95a1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      biz-ghs/product/classes/ProductClass.php

+ 1 - 1
biz-ghs/product/classes/ProductClass.php

@@ -2810,7 +2810,7 @@ class ProductClass extends BaseClass
             return false;
         }
 
-        self::updateByCondition(['id' => $productId], ['limitBuy' => 0]);
+        self::updateById($productId, ['limitBuy' => 0]);
         return true;
     }