Foxtable(狐表)用户栏目专家坐堂 → Foxtable无法获取淘宝Orders


  共有17805人关注过本帖树形打印复制链接

主题:Foxtable无法获取淘宝Orders

帅哥,在线噢!
狐狸爸爸
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/3 16:32:00 [显示全部帖子]

检查一下:

 

Messagebox.Show(Td.Orders.Count)


 回到顶部
帅哥,在线噢!
狐狸爸爸
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 8:24:00 [显示全部帖子]

这个直接询问淘宝比较合适。

 回到顶部
帅哥,在线噢!
狐狸爸爸
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 9:04:00 [显示全部帖子]

.net能用,foxtable肯定就能用。

你贴出.net的代码给我看看,是能运行。

还有库文件也传一个。

[此贴子已经被作者于2011-9-5 9:04:01编辑过]

 回到顶部
帅哥,在线噢!
狐狸爸爸
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 9:28:00 [显示全部帖子]

我在foxtable的命令窗口,测试下面的代码,得到的结果是79:

 

Dim client2 As Top.Api.ITopClient
client2= New Top.Api.DefaultTopClient("http://gw.api.taobao.com/router/rest", "12331621", "176b9b899ddd386d825897408268be04")
Dim request As Top.Api.Request.TradesSoldGetRequest = New Top.Api.Request.TradesSoldGetRequest
request.Fields= "seller_nick, buyer_nick, title, type, created, tid, seller_rate, buyer_rate, status, payment, discount_fee, adjust_fee, post_fee, total_fee, pay_time, end_time, modified, consign_time, buyer_obtain_point_fee, point_fee, real_point_fee, received_payment, commission_fee, pic_path, num_iid, num, price, cod_fee, cod_status, shipping_type, receiver_name, receiver_state, receiver_city, receiver_district, receiver_address, receiver_zip, receiver_mobile, receiver_phone"
request.StartCreated = DateTime.Parse("2011-08-29 00:00:00")
request.EndCreated = DateTime.Parse("2011-08-30 00:00:00")
request.Status="TRADE_FINISHED"
request.PageSize=100
request.PageNo=1
Dim response As  Top.Api.Response.TradesSoldGetResponse= client2.Execute(request)
Dim trades As List(Of Top.Api.Domain.Trade) = response.Trades
messagebox.show(trades.count)


 回到顶部
帅哥,在线噢!
狐狸爸爸
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 9:38:00 [显示全部帖子]

以下是引用qtcks在2011-9-5 9:33:00的发言:

     output.show(trades.Orders.count)
这个值传回看看。

  


图片点击可在新窗口打开查看此主题相关图片如下:tbao.gif
图片点击可在新窗口打开查看

 回到顶部
帅哥,在线噢!
狐狸爸爸
  6楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 9:50:00 [显示全部帖子]

我在vs.net 和foxtable分别测试下面的代码:

 

Dim s As String
Dim client2 As Top.Api.ITopClient
client2 = New Top.Api.DefaultTopClient("http://gw.api.taobao.com/router/rest", "12331621", "176b9b899ddd386d825897408268be04")
Dim request As Top.Api.Request.TradesSoldGetRequest = New Top.Api.Request.TradesSoldGetRequest
request.Fields = "seller_nick, buyer_nick, title, type, created, tid, seller_rate, buyer_rate, status, payment, discount_fee, adjust_fee, post_fee, total_fee, pay_time, end_time, modified, consign_time, buyer_obtain_point_fee, point_fee, real_point_fee, received_payment, commission_fee, pic_path, num_iid, num, price, cod_fee, cod_status, shipping_type, receiver_name, receiver_state, receiver_city, receiver_district, receiver_address, receiver_zip, receiver_mobile, receiver_phone"
request.StartCreated = DateTime.Parse("2011-08-29 00:00:00")
request.EndCreated = DateTime.Parse("2011-08-30 00:00:00")
request.Status = "TRADE_FINISHED"
request.PageSize = 100
request.PageNo = 1
Dim response As Top.Api.Response.TradesSoldGetResponse = client2.Execute(request)
Dim trades As List(Of Top.Api.Domain.Trade) = response.Trades
For Each Td As Top.Api.Domain.Trade In trades
    Dim Ods As List(Of Top.Api.Domain.Order) = Td.Orders
    s = s & ControlChars.NewLine & (Ods.Count)
Next
MessageBox.Show(s)

 

得到的结果都是一连串的0,显然并非在.net行,在foxtable不行,而是本来就不行,直接向淘宝询问吧


 回到顶部
帅哥,在线噢!
狐狸爸爸
  7楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 9:59:00 [显示全部帖子]

我就是在.net里头测试的,不信的话,你可以直接在vb.net 测试20楼的代码,进行验证。

 回到顶部
帅哥,在线噢!
狐狸爸爸
  8楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 10:11:00 [显示全部帖子]

也许你定义的日期范围,根本就没有订单。

 回到顶部
帅哥,在线噢!
狐狸爸爸
  9楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 10:15:00 [显示全部帖子]

别管.net的结果,我在你给出的代码中,从中提取出关键部分,分别明明在.net和foxtbale测试,结果都显示订单数是0,你如何解释?

foxtable就是.net,不可能一样的代码有两样的结果。

也许你指定的日期范围内,根本就没有订单。

 

 

你在vb.net测试下面的代码看看,明明所有的订单数,都是0的。

 

 

Dim s As String
Dim client2 As Top.Api.ITopClient
client2 = New Top.Api.DefaultTopClient("http://gw.api.taobao.com/router/rest", "12331621", "176b9b899ddd386d825897408268be04")
Dim request As Top.Api.Request.TradesSoldGetRequest = New Top.Api.Request.TradesSoldGetRequest
request.Fields = "seller_nick, buyer_nick, title, type, created, tid, seller_rate, buyer_rate, status, payment, discount_fee, adjust_fee, post_fee, total_fee, pay_time, end_time, modified, consign_time, buyer_obtain_point_fee, point_fee, real_point_fee, received_payment, commission_fee, pic_path, num_iid, num, price, cod_fee, cod_status, shipping_type, receiver_name, receiver_state, receiver_city, receiver_district, receiver_address, receiver_zip, receiver_mobile, receiver_phone"
request.StartCreated = DateTime.Parse("2011-08-29 00:00:00")
request.EndCreated = DateTime.Parse("2011-08-30 00:00:00")
request.Status = "TRADE_FINISHED"
request.PageSize = 100
request.PageNo = 1
Dim response As Top.Api.Response.TradesSoldGetResponse = client2.Execute(request)
Dim trades As List(Of Top.Api.Domain.Trade) = response.Trades
For Each Td As Top.Api.Domain.Trade In trades
     Dim Ods As List(Of Top.Api.Domain.Order) = Td.Orders
     s = s & ControlChars.NewLine & (Ods.Count)
Next
MessageBox.Show(s)

[此贴子已经被作者于2011-9-5 10:16:39编辑过]

 回到顶部
帅哥,在线噢!
狐狸爸爸
  10楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2011/9/5 10:37:00 [显示全部帖子]

c#能做的,foxtable也能做,效果一样:

 

 下载信息  [文件大小:   下载次数: ]
图片点击可在新窗口打开查看点击浏览该文件:管理项目61.rar


[本帖被加为精华]
 回到顶部
总数 11 1 2 下一页