|
|
@@ -50,7 +50,7 @@ class SystemStoreProductStockLog extends BaseModel
|
|
|
}
|
|
|
$stock = SystemStoreProductStock::where(['product_id' => $product_id, 'unique' => $unique, 'store_id' => $store_id])->find();
|
|
|
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 ($number > 0) {
|