银豹变更商品状态
This commit is contained in:
@@ -539,3 +539,18 @@ func (a *API) TryGetCookie() (cookie string, err error) {
|
||||
})
|
||||
return cookie, err
|
||||
}
|
||||
|
||||
//银豹改变商品状态?
|
||||
//https://beta27.pospal.cn/Product/BatchUpdateProductEnable
|
||||
func (a *API) BatchUpdateProductEnable(userID, productId string, enable int) (err error) {
|
||||
_, err = a.AccessStorePage("Product/BatchUpdateProductEnable", map[string]interface{}{
|
||||
"enable": enable,
|
||||
"productRange[userId]": userID,
|
||||
"productRange[enable]": enable,
|
||||
"productRange[isProductRequestedStore]": false,
|
||||
"productRange[isAddvancedSearch]": false,
|
||||
"productRange[isUpdateAllProduct]": false,
|
||||
"productRange[productUidsJson]": []string{productId},
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user