修复用户创建失败问题
This commit is contained in:
1 parent
59fba28f8a
commit
917eb94971
1 file changed
+6
-6
@@ -607,15 +607,15 @@ namespace KJD_Web.BLL.WXXD
|
||||
var shop_points_per_month = RegexUtils.GetStringQuery(ref inputData, "shop_points_per_month")?.Replace("'", "\\'");
|
||||
if (shop_points_per_month.ParseToInt() <= 30) // 充值用户月积分消耗点数,最小30
|
||||
shop_points_per_month = "30";
|
||||
var postage_per_order = RegexUtils.GetStringQuery(ref inputData, "postage_per_order")?.Replace("'", "\\'");
|
||||
var postage_per_order = RegexUtils.GetStringQuery(ref inputData, "postage_per_order").ParseToDecimal();
|
||||
if (postage_per_order.ParseToDecimal() <= 2.2m) // 每单费用
|
||||
postage_per_order = "2.2";
|
||||
var refund_postage_per_order = RegexUtils.GetStringQuery(ref inputData, "refund_postage_per_order")?.Replace("'", "\\'");
|
||||
postage_per_order = 2.2m;
|
||||
var refund_postage_per_order = RegexUtils.GetStringQuery(ref inputData, "refund_postage_per_order").ParseToDecimal().ParseToDecimal();
|
||||
if (refund_postage_per_order.ParseToDecimal() <= 2.5m) // 每单费用
|
||||
refund_postage_per_order = "2.5";
|
||||
var gift_oem_amount_per_order = RegexUtils.GetStringQuery(ref inputData, "gift_oem_amount_per_order")?.Replace("'", "\\'");
|
||||
refund_postage_per_order = 2.5m;
|
||||
var gift_oem_amount_per_order = RegexUtils.GetStringQuery(ref inputData, "gift_oem_amount_per_order").ParseToDecimal();
|
||||
if (gift_oem_amount_per_order.ParseToDecimal() < 0m) // 每单费用
|
||||
gift_oem_amount_per_order = "0";
|
||||
gift_oem_amount_per_order = 0;
|
||||
|
||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||
MysqlUtils mySql = new MysqlUtils(conn);
|
||||
|
||||
Reference in new issue
Block a user