forked from yoone/API
Fix: 修复stock_status不生效的问题
This commit is contained in:
parent
9137e95c02
commit
1a1f7c8515
|
|
@ -237,6 +237,7 @@ export class WPService {
|
||||||
): Promise<Boolean> {
|
): Promise<Boolean> {
|
||||||
const res = await this.updateData(`/wc/v3/products/${productId}`, site, {
|
const res = await this.updateData(`/wc/v3/products/${productId}`, site, {
|
||||||
status,
|
status,
|
||||||
|
manage_stock: false, // 为true的时候,用quantity控制库存,为false时,直接用stock_status控制
|
||||||
stock_status,
|
stock_status,
|
||||||
});
|
});
|
||||||
console.log('res', res);
|
console.log('res', res);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue