This commit is contained in:
chfei authored and chfei committed 2026-09-14 09:16:59 +08:00
1 parent 0a3e5af6a9
commit c2dcedd238
59 files changed
+2053 -1274

No files matched your search

@@ -1,5 +1,6 @@
using AllBase;
using AllBase.Extension;
using NaiBa.Util.Extension;
using AllBase.Helper;
using AllBase.Model.Config;
using AllBase.Model.DBModel;
@@ -20,7 +21,6 @@ using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using Work;
namespace Store.Product.Publish.Steps.Wx;
@@ -34,19 +34,20 @@ public sealed class PrepareHotlinkImageMapStep : WxProductPublishStepBase
protected override Task ExecuteProvider(WXPublishContext context, CancellationToken cancellationToken)
{
isChangeImgDic = false;
wxImgMapDic = new Dictionary<string, string>();
if (!string.IsNullOrEmpty(dbProd.wx_img_map_json))
context.Parameters.IsChangeImgDic = false;
context.Parameters.WxImgMapDic = new Dictionary<string, string>();
if (!string.IsNullOrEmpty(context.Product.WxImgMapJson))
{
try
{
wxImgMapDic = JsonHelper.DeserializeJsonToObject<Dictionary<string, string>>(dbProd.wx_img_map_json);
context.Parameters.WxImgMapDic = JsonHelper.DeserializeJsonToObject<Dictionary<string, string>>(context.Product.WxImgMapJson);
}
catch
{
isChangeImgDic = true;
wxImgMapDic = new Dictionary<string, string>();
context.Parameters.IsChangeImgDic = true;
context.Parameters.WxImgMapDic = new Dictionary<string, string>();
}
}
return Task.CompletedTask;
}
}