gx
This commit is contained in:
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,17 +34,18 @@ public sealed class SetPreSaleInfoStep : WxProductPublishStepBase
|
||||
|
||||
protected override Task ExecuteProvider(WXPublishContext context, CancellationToken cancellationToken)
|
||||
{
|
||||
if (chkPreSale.Checked)
|
||||
if (context.Parameters.IsPreSale)
|
||||
{
|
||||
upProdParam.product.deliverInfo = new productDeliverInfoParam();
|
||||
upProdParam.product.deliverInfo.deliverType = 1;
|
||||
int preSaleDays = Math.Max(3, wxUploadRule.PreSaleDays);
|
||||
context.Parameters.ProductParameter.product.deliverInfo = new productDeliverInfoParam();
|
||||
context.Parameters.ProductParameter.product.deliverInfo.deliverType = 1;
|
||||
int preSaleDays = Math.Max(3, context.Parameters.PreSaleDays);
|
||||
preSaleDays = Math.Min(45, preSaleDays);
|
||||
upProdParam.product.deliverInfo.skuDeliverInfo = new skuDeliverInfoParam()
|
||||
context.Parameters.ProductParameter.product.deliverInfo.skuDeliverInfo = new skuDeliverInfoParam()
|
||||
{
|
||||
stockType = 1,
|
||||
fullPaymentPresaleDeliveryTime = preSaleDays.ParseToString()
|
||||
};
|
||||
}
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user