/// <summary> /// 上架商品 /// </summary> /// <param name="itemId"></param> /// <param name="num"></param> /// <returns></returns> public ApiResult ItemUpdateList(long itemId, long num) { ITopClient client = GetTopClient(); ItemUpdateListingRequest req = new ItemUpdateListingRequest(); req.NumIid = itemId; req.Num = num; ItemUpdateListingResponse rsp = client.Execute(req, AccessToken); return(rsp.AsApiResult()); }
/// <summary> /// 一口價商品上架 /// </summary> /// <param name="sessionKey"></param> /// <param name="GoodsId"></param> /// <param name="ShelfGoodsNum"></param> /// <returns></returns> internal bool GoodsShelf(string sessionKey, string GoodsId, string ShelfGoodsNum, out string errorMsg) { ITopClient client = new DefaultTopClient(StaticSystemConfig.soft.ApiURL, StaticSystemConfig.soft.AppKey, StaticSystemConfig.soft.AppSecret, "json"); ItemUpdateListingRequest req = new ItemUpdateListingRequest(); req.NumIid = long.Parse(GoodsId); req.Num = long.Parse(ShelfGoodsNum); ItemUpdateListingResponse response = client.Execute(req, sessionKey); errorMsg = response.SubErrMsg; return(response.IsError); }