Browse Source

一些功能

Kirin 4 years ago
parent
commit
648e9a7bb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/model/system/SystemStoreProductStockLog.php

+ 1 - 1
app/admin/model/system/SystemStoreProductStockLog.php

@@ -50,7 +50,7 @@ class SystemStoreProductStockLog extends BaseModel
         }
         }
         $stock = SystemStoreProductStock::where(['product_id' => $product_id, 'unique' => $unique, 'store_id' => $store_id])->find();
         $stock = SystemStoreProductStock::where(['product_id' => $product_id, 'unique' => $unique, 'store_id' => $store_id])->find();
         if (!$stock) {
         if (!$stock) {
-            $stock = SystemStoreProductStock::create(['product_id' => $product_id, 'unique' => $unique, 'store_id' => $store_id, 'add_time' => time(), 'stock' => 100, 'in_use' => 1, 'price' => $price]);
+            $stock = SystemStoreProductStock::create(['product_id' => $product_id, 'unique' => $unique, 'store_id' => $store_id, 'add_time' => time(), 'stock' => 999, 'in_use' => 1, 'price' => $price]);
         }
         }
         if (!$stock['in_use']) return self::setErrorInfo('所选门店未上架' . StoreProduct::get($product_id)['store_name'] . '[' . $info['suk'] . ']');
         if (!$stock['in_use']) return self::setErrorInfo('所选门店未上架' . StoreProduct::get($product_id)['store_name'] . '[' . $info['suk'] . ']');
         if ($number > 0) {
         if ($number > 0) {