Commit c9d5bad9 by Neo Turing

优化

parent fb37dee8
......@@ -39,8 +39,8 @@ namespace Kivii.Third.Bestseller.Extensions
getWtsListRequest.signature = signature;
getWtsListRequest.timestamp = timeStamp;
getWtsListRequest.length = length;
if (beginTime != null && beginTime.Value != DateTime.MinValue) getWtsListRequest.beginTime = beginTime.Value;
if (endTime != null && endTime.Value != DateTime.MinValue) getWtsListRequest.endTime = endTime.Value;
if (beginTime != null && beginTime.Value != DateTime.MinValue) getWtsListRequest.beginTime = beginTime.Value.ToString("yyyy-MM-dd");
if (endTime != null && endTime.Value != DateTime.MinValue) getWtsListRequest.endTime = endTime.Value.ToString("yyyy-MM-dd");
var response = _client.Get(getWtsListRequest);
return response;
......
......@@ -41,10 +41,10 @@ namespace Kivii.Third.Bestseller.Requests
public string timestamp { get; set; }
[ApiMember(Description = "时间(从)可填")]
public DateTime? beginTime { get; set; }
public string beginTime { get; set; }
[ApiMember(Description = "时间(到)可填")]
public DateTime? endTime { get; set; }
public string endTime { get; set; }
[ApiMember(Description = "返回记录数(可填,默认为10)")]
public int length { get; set; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment