public ApiResult <AliGoodDetailRes> GetAliGoodDetail(string numIids, string ip, int platform)
        {
            AliGoodDetailReq req = new AliGoodDetailReq()
            {
                Ip       = ip,
                NumIids  = numIids,
                Platform = platform
            };

            return(_aliApiService.GetAliGoodDetail(req));
        }
Ejemplo n.º 2
0
        public ApiResult <AliGoodDetailRes> GetAliGoodDetail(AliGoodDetailReq req)
        {
            ApiResult <AliGoodDetailRes> apiResult = new ApiResult <AliGoodDetailRes>();

            try
            {
                apiResult.Data      = _aliApi.GetGoodDetail(req);
                apiResult.IsSuccess = true;
            }
            catch (Exception e)
            {
                apiResult.Message = e.Message;
            }
            return(apiResult);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 获取商品详情
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public AliGoodDetailRes GetGoodDetail(AliGoodDetailReq req)
        {
            AliGoodDetailRes      res     = new AliGoodDetailRes();
            ITopClient            client  = new DefaultTopClient(AliUrl, AliAppKey, AliAppSecret);
            TbkItemInfoGetRequest request = new TbkItemInfoGetRequest()
            {
                Ip       = req.Ip,
                NumIids  = req.NumIids,
                Platform = req.Platform
            };
            TbkItemInfoGetResponse rsp = client.Execute(request);

            res = DeserializeObject <AliGoodDetailRes>(SerializeObject(rsp));
            return(res);
        }