forked from yoone/API
1
0
Fork 0

Fix: 修复stock_status不生效的问题

This commit is contained in:
黄珑 2025-09-16 19:12:59 +08:00
parent 9137e95c02
commit 1a1f7c8515
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ export class WPService {
): Promise<Boolean> {
const res = await this.updateData(`/wc/v3/products/${productId}`, site, {
status,
manage_stock: false, // 为true的时候用quantity控制库存为false时直接用stock_status控制
stock_status,
});
console.log('res', res);