Explorar o código

update: 更新索引条件错误

shizhongqi hai 4 meses
pai
achega
65a1253a08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(['productId' => $productId], ['limitBuy' => 0]);
+        self::updateByCondition(['id' => $productId], ['limitBuy' => 0]);
         return true;
     }