namespace Yunshop\AreaStore\common\models\AreaStoreGoodsStock; // 获取库存 AreaStoreGoodsStock::getStock($goods_id, $as_id); // 修改分站商品库存 加库存$total = 1 减库存$total = -1 AreaStoreGoodsStock::updateStock($goods_id, $as_id, $total);
namespace Yunshop\AreaStore\common\models\AreaStoreOptionStock; // 获取规格库存 返回 int AreaStoreOptionStock::getOptionStock($goods_id, $option_id, $as_id); //修改规格库存 加库存$total = 1 减库存$total = -1 返回数组['msg', 'status'] AreaStoreOptionStock::updateOptionStock($goods_id, $option_id, $as_id, $total);