shanji 2 years ago
parent
commit
73ca9eade5
  1. 3
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs
  2. 51
      BBWY.Test/JDProductAPITest.cs
  3. 2
      BBWY.Test/Program.cs
  4. 3
      PJZS/MainWindow.xaml

3
BBWY.Server.Business/PlatformSDK/JDBusiness.cs

@ -15,6 +15,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
namespace BBWY.Server.Business namespace BBWY.Server.Business
{ {
@ -1062,6 +1063,7 @@ namespace BBWY.Server.Business
#region 审核活动 #region 审核活动
{ {
stepText = "审核活动"; stepText = "审核活动";
Thread.Sleep(3000);
var req = new SellerPromotionCheckRequest(); var req = new SellerPromotionCheckRequest();
req.promoId = promotionId; req.promoId = promotionId;
req.status = 4; req.status = 4;
@ -1079,6 +1081,7 @@ namespace BBWY.Server.Business
SkuList = giftSkuIdList SkuList = giftSkuIdList
}); });
} }
throw new BusinessException($"审核活动失败-{(string.IsNullOrEmpty(res.ErrorMsg) ? res.ErrMsg : res.ErrorMsg)}"); throw new BusinessException($"审核活动失败-{(string.IsNullOrEmpty(res.ErrorMsg) ? res.ErrMsg : res.ErrorMsg)}");
} }
} }

51
BBWY.Test/JDProductAPITest.cs

@ -74,47 +74,7 @@ namespace BBWY.Test
Console.WriteLine(JsonConvert.SerializeObject(res)); Console.WriteLine(JsonConvert.SerializeObject(res));
} }
public void QueryOrderCount(IJdClient client, string token)
{
var req = new ActyQueryRegistrationDataCountRequest();
req.skuId = 10029655955332;
//req.orderId = ;
req.beginDate = "2022-12-01 00:00:00";
req.endDate = "2022-12-26 23:59:59";
var response = client.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(response));
}
public void QueryTouTu(IJdClient client, string token)
{
var req = new TransparentImageReadFindByWareIdAndColorIdRequest();
var mainSpu = "10022905456671";
req.wareId = long.Parse(mainSpu);
req.colorId = "0000000000";
var response = client.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(response));
}
/// <summary>
/// 查询SKU细节图
/// </summary>
public void FindImageByColor(IJdClient client, string token, string spu)
{
var req = new ImageReadFindImagesByColorRequest();
req.wareId = long.Parse(spu);
req.colorId = "0000000000";
var response = client.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(response));
}
public void ShangJiaTest(IJdClient client, string token) public void ShangJiaTest(IJdClient client, string token)
{ {
@ -425,5 +385,14 @@ namespace BBWY.Test
Console.WriteLine(); Console.WriteLine();
} }
} }
public void (IJdClient client, string token)
{
var req = new SellerPromotionCheckRequest();
req.promoId = 5616082560;
req.status = 4;
var res = client.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(res));
}
} }
} }

2
BBWY.Test/Program.cs

@ -39,7 +39,7 @@ namespace BBWY.Test
IJdClient client = GetJdClient(appkey, appSecret); IJdClient client = GetJdClient(appkey, appSecret);
var test1 = new JDProductAPITest(); var test1 = new JDProductAPITest();
test1.GetSkus(client, token); test1.(client, token);
Console.ReadKey(); Console.ReadKey();

3
PJZS/MainWindow.xaml

@ -8,8 +8,7 @@
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
mc:Ignorable="d" mc:Ignorable="d"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
WindowState="Maximized" Title="评价助手" Height="1050" Width="1920"
Title="评价助手" Height="768" Width="1024"
RightButtonGroupMargin="0,5,5,0"> RightButtonGroupMargin="0,5,5,0">
<!--<b:Interaction.Triggers> <!--<b:Interaction.Triggers>
<b:EventTrigger EventName="Closing"> <b:EventTrigger EventName="Closing">

Loading…
Cancel
Save