diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index 0311d080..9dd4db67 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1040,6 +1040,8 @@ namespace BBWY.Server.Business #region 提交活动 { + stepText = "提交活动"; + Thread.Sleep(3000); var req = new SellerPromotionCommitRequest(); req.promoId = promotionId; var res = jdClient.Execute(req, request.AppToken, DateTime.Now.ToLocalTime()); @@ -1089,6 +1091,8 @@ namespace BBWY.Server.Business #endregion #region 下架赠品sku + stepText = "下架赠品sku"; + Thread.Sleep(3000); DeleteSkuList(new DeleteSkuListRequest() { AppKey = request.AppKey, diff --git a/PJZS/App.xaml.cs b/PJZS/App.xaml.cs index 627e949c..56623900 100644 --- a/PJZS/App.xaml.cs +++ b/PJZS/App.xaml.cs @@ -9,6 +9,8 @@ using System.Reflection; using System.Threading.Tasks; using System.Windows; using PJZS.Models; +using System.Linq; +using System.IO.MemoryMappedFiles; namespace PJZS { @@ -83,5 +85,25 @@ namespace PJZS { throw new NotImplementedException(); } + + public (bool isOk, string content) ReadMMF(string mapname) + { + try + { + using (MemoryMappedFile mmf = MemoryMappedFile.OpenExisting(mapname)) + { + using (var mmfStream = mmf.CreateViewStream(0, 1000, MemoryMappedFileAccess.ReadWrite)) + { + StreamReader reader = new StreamReader(mmfStream); + string jwt = reader.ReadToEnd().Replace("\0", "").TrimEnd(); + return (true, jwt); + } + } + } + catch (Exception ex) + { + return (false, ex.Message); + } + } } }