Commit 45628138 by QJQ

更新导码数量单位

parent b93fa806
......@@ -51,22 +51,10 @@ namespace Freemud.Coupon.ExportCode.Services
}
int currentExportAmount = GetCurrentExportAmount();
if (!isDebug)
{
currentExportAmount /= 10000;
maxExportAmount /= 10000;
}
if (currentExportAmount + req.CouponAmount > maxExportAmount)
{
var availableAmount = maxExportAmount - currentExportAmount;
return MessageResult.Fail($"导码池数量总共不能超过【{maxExportAmount}万】,当前可输入的最大导码量为【{availableAmount}万】!");
}
if (!isDebug)
{
req.CouponAmount *= 10000;
return MessageResult.Fail($"导码池数量总共不能超过【{maxExportAmount}】,当前可输入的最大导码量为【{availableAmount}】!");
}
CouponExportRecord record = new CouponExportRecord
......@@ -173,16 +161,7 @@ namespace Freemud.Coupon.ExportCode.Services
}
int pageIndex = currentPage.Value - 1;
var couponSourceList = allList.Skip(pageIndex * pageSize.Value).Take(pageSize.Value).ToList();
if (!isDebug)
{
foreach (var item in couponSourceList)
{
item.CouponAmount /= 10000;
}
}
var data = new
{
list = couponSourceList,
......
......@@ -15,7 +15,7 @@
<add key="coupon_bussiness_type" value="coupon" />
<add key="common_bussiness_type" value="common_base" />
<add key="isDebug" value="true" />
<add key="maxExportAmount" value="20" />
<add key="maxExportAmount" value="500000" />
<add key="ipWhiteList" value="127.0.0.1,::1,172.16.0.152" />
<add key="filePathRoot" value="E:\document\发布包\测试环境\Freemud.Quartz.CouponCodeExport\CouponCodeFiles\" />
<add key="EmailConfig" value="{ servername:'smtp.exmail.qq.com', smtpport:465, adminaccount:'coupon-notification@freemud.cn', adminpassword:'CouponGood@@1'}" />
......
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