Fix: 修复stock_status不生效的问题 #17

Merged
longbot merged 1 commits from longbot/API:Feature-control-product-status into main 2025-09-16 11:15:39 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 1a1f7c8515 - Show all commits

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);