diff --git a/Mtxfw.DAL/MemberStatistics_huiyuan.cs b/Mtxfw.DAL/MemberStatistics_huiyuan.cs index 841e7bc..191856d 100644 --- a/Mtxfw.DAL/MemberStatistics_huiyuan.cs +++ b/Mtxfw.DAL/MemberStatistics_huiyuan.cs @@ -205,6 +205,7 @@ namespace Mtxfw.DAL var uplevel2_amount = config.direct_upgrade_level2_amount_condition; var uplevel3_amount = config.direct_upgrade_level3_amount_condition; var uplevel4_amount = config.direct_upgrade_level4_amount_condition; + var uplevel5_amount = config.direct_upgrade_level5_amount_condition; if (duLevel < ptype) { var flag = daoUser.UpdateuLevel("uLevel", ptype, dID); @@ -237,6 +238,11 @@ namespace Mtxfw.DAL var flag = daoUser.UpdateuLevel("uLevel", 4, dID); return flag ? 4 : 0; } + else if (uplevel5_amount > 0 && pv >= uplevel5_amount && duLevel < 4) + { + var flag = daoUser.UpdateuLevel("uLevel", 5, dID); + return flag ? 3 : 0; + } } } @@ -294,10 +300,10 @@ namespace Mtxfw.DAL } if (umodel != null) { - var uplevel2_amount = config.upgrade_level2_amount_condition; + var uplevel5_amount = config.upgrade_level5_amount_condition; var uplevel3_amount = config.upgrade_level3_amount_condition; var uplevel4_amount = config.upgrade_level4_amount_condition; - var upgrade_level2 = config.upgrade_level2_person_condition; + var upgrade_level5 = config.upgrade_level5_person_condition; var upgrade_level3 = config.upgrade_level3_person_condition; var upgrade_level4 = config.upgrade_level4_person_condition; var umoneyyjze = umodel.umoney18; @@ -307,47 +313,32 @@ namespace Mtxfw.DAL var tjcount = 0; switch (selflevel) { - case 1: - if (rowlevel == 1) - { - // rowlevel是否升到2级的条件 - if (uplevel2_amount>0 && upgrade_level2>0) - { - tjcount = daoUser.GetCount("gtype=" + gtype + " and IFStores=0 And userstate='正常' and ContactID=" + rowid + " and uLevel=" + rowlevel + ""); - if (tjcount >= upgrade_level2 && umoneyyjze >= uplevel2_amount) - { - uplevel = 2; - } - } + //case 2: + // if (rowlevel == 2) + // { + // // rowlevel是否升到2级的条件 + // if (uplevel2_amount>0 && upgrade_level2>0) + // { + // tjcount = daoUser.GetCount("gtype=" + gtype + " and IFStores=0 And userstate='正常' and ContactID=" + rowid + " and uLevel=" + rowlevel + ""); + // if (tjcount >= upgrade_level2 && umoneyyjze >= uplevel2_amount) + // { + // uplevel = 2; + // } + // } - } - break; - case 2: - // - if (rowlevel == 2) - { - // rowlevel是否升到3级的条件 - if (uplevel2_amount > 0 && upgrade_level2 > 0) - { - tjcount = daoUser.GetCount("gtype=" + gtype + " and IFStores=0 And userstate='正常' and ContactID=" + rowid + " and uLevel=" + rowlevel + ""); - if (tjcount >= upgrade_level2 && umoneyyjze >= uplevel2_amount) - { - uplevel = 3; - } - } - - } - break; + // } + // break; case 3: + // if (rowlevel == 3) { - // rowlevel是否升到4级的条件 - if (uplevel2_amount > 0 && upgrade_level2 > 0) + // rowlevel是否升到3级的条件 + if (uplevel3_amount > 0 && upgrade_level3 > 0) { tjcount = daoUser.GetCount("gtype=" + gtype + " and IFStores=0 And userstate='正常' and ContactID=" + rowid + " and uLevel=" + rowlevel + ""); - if (tjcount >= upgrade_level2 && umoneyyjze >= uplevel2_amount) + if (tjcount >= upgrade_level3 && umoneyyjze >= uplevel3_amount) { - uplevel = 4; + uplevel = 3; } } @@ -356,11 +347,26 @@ namespace Mtxfw.DAL case 4: if (rowlevel == 4) { - // rowlevel是否升到5级的条件 - if (uplevel2_amount > 0 && upgrade_level2 > 0) + // rowlevel是否升到4级的条件 + if (uplevel4_amount > 0 && upgrade_level4 > 0) { tjcount = daoUser.GetCount("gtype=" + gtype + " and IFStores=0 And userstate='正常' and ContactID=" + rowid + " and uLevel=" + rowlevel + ""); - if (tjcount >= upgrade_level2 && umoneyyjze >= uplevel2_amount) + if (tjcount >= upgrade_level4 && umoneyyjze >= uplevel4_amount) + { + uplevel = 4; + } + } + + } + break; + case 5: + if (rowlevel == 4) + { + // rowlevel是否升到5级的条件 + if (uplevel5_amount > 0 && upgrade_level5 > 0) + { + tjcount = daoUser.GetCount("gtype=" + gtype + " and IFStores=0 And userstate='正常' and ContactID=" + rowid + " and uLevel=" + rowlevel + ""); + if (tjcount >= upgrade_level5 && umoneyyjze >= uplevel5_amount) { uplevel = 5; } @@ -941,6 +947,7 @@ namespace Mtxfw.DAL double result = yfbl; try { + int dID = Convert.ToInt32(ContactRow["ID"].ToString()); //Yumoney17就是余额,而且写成负数 Double Yumoney17 = Convert.ToDouble(Convert.ToDouble(ContactRow["umoney17"]).ToString("f4")); @@ -1070,6 +1077,12 @@ namespace Mtxfw.DAL double result = yfbl; try { + var uplevel2_amount = config.direct_upgrade_level2_amount_condition; + ///热卖商品只有到达升级到2级金额的才能拿佣金 + if (pv < uplevel2_amount) + { + result = 0; + } int dID = Convert.ToInt32(ContactRow["ID"].ToString()); //Yumoney17就是余额,而且写成负数 Double Yumoney17 = Convert.ToDouble(Convert.ToDouble(ContactRow["umoney17"]).ToString("f4")); diff --git a/Mtxfw.Utility/Common.cs b/Mtxfw.Utility/Common.cs index 86b5eee..e96bf49 100644 --- a/Mtxfw.Utility/Common.cs +++ b/Mtxfw.Utility/Common.cs @@ -1980,12 +1980,13 @@ namespace Mtxfw.Utility { Dictionary dic = new Dictionary(); dic.Add(0, "普通会员"); - dic.Add(1, "健康大使"); - dic.Add(2, "健康合伙人"); - dic.Add(3, "健康执行官"); - dic.Add(4, "健康守护者"); - dic.Add(5, ""); + dic.Add(1, "准健康大使"); + dic.Add(2, "健康大使"); + dic.Add(3, "健康合伙人"); + dic.Add(4, "健康执行官"); + dic.Add(5, "健康守护者"); dic.Add(6, ""); + dic.Add(7, ""); return dic; } diff --git a/Mtxfw.Utility/Config.cs b/Mtxfw.Utility/Config.cs index 4f053b3..a99d960 100644 --- a/Mtxfw.Utility/Config.cs +++ b/Mtxfw.Utility/Config.cs @@ -2371,7 +2371,7 @@ namespace Mtxfw.Utility } /// - /// 等级0的直接上级奖金比例 + /// 等级0的直接上级奖金比例(业务佣金) /// public Double level0_direct_superior_bonus_ratio { @@ -2440,18 +2440,33 @@ namespace Mtxfw.Utility { setData("level4_fixed_bonus", value.ToString()); } } + /// - /// 升级到等级2的金额条件 + /// 等级5的最大奖金比例 /// - public Double upgrade_level2_amount_condition + public Double level5_fixed_bonus + { + get + { + string value = getData("level5_fixed_bonus"); + return string.IsNullOrEmpty(value) ? 0 : double.Parse(value); + } + set + { setData("level5_fixed_bonus", value.ToString()); } + } + + /// + /// 升级到等级5的金额条件 + /// + public Double upgrade_level5_amount_condition { get { - string value = getData("upgrade_level2_amount_condition"); + string value = getData("upgrade_level5_amount_condition"); return string.IsNullOrEmpty(value) ? 0 : double.Parse(value); } set - { setData("upgrade_level2_amount_condition", value.ToString()); } + { setData("upgrade_level5_amount_condition", value.ToString()); } } /// @@ -2483,17 +2498,17 @@ namespace Mtxfw.Utility } /// - /// 升级到等级2的拉人条件 + /// 升级到等级5的拉人条件 /// - public int upgrade_level2_person_condition + public int upgrade_level5_person_condition { get { - string value = getData("upgrade_level2_person_condition"); + string value = getData("upgrade_level5_person_condition"); return string.IsNullOrEmpty(value) ? 0 : int.Parse(value); } set - { setData("upgrade_level2_person_condition", value.ToString()); } + { setData("upgrade_level5_person_condition", value.ToString()); } } /// @@ -2579,6 +2594,36 @@ namespace Mtxfw.Utility set { setData("direct_upgrade_level4_amount_condition", value.ToString()); } } + + /// + /// 直接升级到等级5的金额条件 + /// + public Double direct_upgrade_level5_amount_condition + { + get + { + string value = getData("direct_upgrade_level5_amount_condition"); + return string.IsNullOrEmpty(value) ? 0 : double.Parse(value); + } + set + { setData("direct_upgrade_level5_amount_condition", value.ToString()); } + } + + /// + /// 赠送兑换卷值 + /// + public Double vouchervalue + { + get + { + string value = getData("vouchervalue"); + return string.IsNullOrEmpty(value) ? 0 : double.Parse(value); + } + + set + { setData("vouchervalue", value.ToString()); } + } + public string webMoney153 { get diff --git a/Mtxfw.VipSite/Admin_Member_Products.aspx b/Mtxfw.VipSite/Admin_Member_Products.aspx index c7a6696..0a694b8 100644 --- a/Mtxfw.VipSite/Admin_Member_Products.aspx +++ b/Mtxfw.VipSite/Admin_Member_Products.aspx @@ -133,7 +133,7 @@ 选择 <%} %> 商品 - 兑换值/库存 + 金额/库存 排序ID 添加时间 状态 diff --git a/Mtxfw.VipSite/Admin_Member_Products.aspx.cs b/Mtxfw.VipSite/Admin_Member_Products.aspx.cs index ab5e4b8..b9e22ad 100644 --- a/Mtxfw.VipSite/Admin_Member_Products.aspx.cs +++ b/Mtxfw.VipSite/Admin_Member_Products.aspx.cs @@ -404,8 +404,10 @@ namespace Mtxfw.VipSite string G_Name = Dr["G_Name"].ToString(); Double G_JG = Double.Parse(Dr["G_JG"].ToString()); Double G_JF = Double.Parse(Dr["G_JF"].ToString()); + Double G_JG2 = Double.Parse(Dr["G_JG2"].ToString()); + Double G_JG4 = Double.Parse(Dr["G_JG4"].ToString()); int G_KC = int.Parse(Dr["G_KC"].ToString()); - strje += G_Name + " " + "价格"+G_JG + "+兑换券" + G_JF + "/库存" + G_KC + "
"; + strje += G_Name + " " + "价格"+G_JG + "+消费值" + G_JG4 + "/库存" + G_KC + "
"; } strje += ""; } diff --git a/Mtxfw.VipSite/Admin_Member_Products.aspx.designer.cs b/Mtxfw.VipSite/Admin_Member_Products.aspx.designer.cs index 5b09a9c..e2a76e6 100644 --- a/Mtxfw.VipSite/Admin_Member_Products.aspx.designer.cs +++ b/Mtxfw.VipSite/Admin_Member_Products.aspx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// This code was generated by a tool. +// <自动生成> +// 此代码由工具生成。 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// //------------------------------------------------------------------------------ namespace Mtxfw.VipSite @@ -15,65 +15,65 @@ namespace Mtxfw.VipSite { /// - /// Head1 control. + /// Head1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlHead Head1; /// - /// Drop_Cls control. + /// Drop_Cls 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.DropDownList Drop_Cls; /// - /// Drop_State control. + /// Drop_State 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.DropDownList Drop_State; /// - /// Repeater1 control. + /// Repeater1 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Repeater Repeater1; /// - /// seclect_Drop control. + /// seclect_Drop 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.DropDownList seclect_Drop; /// - /// Btn_Run control. + /// Btn_Run 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Button Btn_Run; /// - /// MyPager control. + /// MyPager 控件。 /// /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::Wuqi.Webdiyer.AspNetPager MyPager; } diff --git a/Mtxfw.VipSite/Admin_Member_Products_add.aspx b/Mtxfw.VipSite/Admin_Member_Products_add.aspx index b143de2..dfa4492 100644 --- a/Mtxfw.VipSite/Admin_Member_Products_add.aspx +++ b/Mtxfw.VipSite/Admin_Member_Products_add.aspx @@ -532,7 +532,7 @@ var len = 1; function onaddgg() {//
  • //var html = '
    • '; - var html = '
      • '; + var html = '
        • '; @@ -568,18 +568,18 @@ var images = $("#addggbox_box" + id + " .texttp").attr("tps"); var gg=fTrim($("#addggbox_box" + id + " #textgg").val()); var jg = fTrim($("#addggbox_box" + id + " #textjg").val()); - var jg2 = "";// fTrim($("#addggbox_box" + id + " #textjg2").val()); + var jg2 = fTrim($("#addggbox_box" + id + " #textjg2").val()); var jg1 = "";// fTrim($("#addggbox_box" + id + " #textjg1").val()); var jg3 = "";// fTrim($("#addggbox_box" + id + " #textjg3").val()); - var jg4 = ""; + var jg4 = fTrim($("#addggbox_box" + id + " #textjg4").val()); var jg5 = ""; var jg6 = ""; jg0 = "";// fTrim($("#addggbox_box" + id + " #textjg0").val()); //jg4 = fTrim($("#addggbox_box" + id + " #textjg4").val()); - var jf =fTrim($("#addggbox_box" + id + " #textjf").val()); + var jf = "0";// fTrim($("#addggbox_box" + id + " #textjf").val()); var zl=fTrim($("#addggbox_box" + id + " #textzl").val()); @@ -589,12 +589,18 @@ b = false; alert("规格名称不能为空") } - <%--if (b) { + if (b) { if (jg2 == "") { b = false; alert("零售价不能为空") } - }--%> + } + if (b) { + if (jg4 == "") { + b = false; + alert("消费值不能为空") + } + } if (b) { if (jg == "") { b = false; @@ -1074,13 +1080,14 @@
          -
          • 规格
          • 售价
          • 优惠券
          • +
            • 规格
            • 售价
            • 零售价
            • 消费值
            • 重量
            • 库存
            • 颜色
            • 图片
            <%=guige%> <%if (guige == "") {%> -
            • +
              • +
              • #颜色#
              • #图片#
              <%} %> diff --git a/Mtxfw.VipSite/Admin_Member_Products_add.aspx.cs b/Mtxfw.VipSite/Admin_Member_Products_add.aspx.cs index b692c12..10f0f41 100644 --- a/Mtxfw.VipSite/Admin_Member_Products_add.aspx.cs +++ b/Mtxfw.VipSite/Admin_Member_Products_add.aspx.cs @@ -107,7 +107,7 @@ namespace Mtxfw.VipSite string tps = Dr["G_Images"].ToString(); //guige += "
              • "; //guige += "
              • #颜色#
              • #图片#
              "; - guige += "
              • "; + guige += "
                • "; guige += "
                • #颜色#
                • #图片#
                "; } } @@ -213,7 +213,7 @@ namespace Mtxfw.VipSite int G_KC = int.Parse(Dr["G_KC"].ToString()); string colors = Dr["G_Color"].ToString(); string tps = Dr["G_Images"].ToString(); - guige += "
                • "; + guige += "
                  • "; guige += "
                  • #颜色#
                  • #图片#
                  "; diff --git a/Mtxfw.VipSite/App_Data/Config.xml b/Mtxfw.VipSite/App_Data/Config.xml index 05e8973..c7a90b1 100644 --- a/Mtxfw.VipSite/App_Data/Config.xml +++ b/Mtxfw.VipSite/App_Data/Config.xml @@ -285,19 +285,22 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Mtxfw.VipSite/Css/smartadmin-production.css b/Mtxfw.VipSite/Css/smartadmin-production.css index f85adec..b324e10 100644 --- a/Mtxfw.VipSite/Css/smartadmin-production.css +++ b/Mtxfw.VipSite/Css/smartadmin-production.css @@ -1,19 +1,14 @@ html { margin: 0; padding: 0; - height: 100%; overflow-y: auto; - - background:#F2F2F2 url(leftnavbg.jpg) no-repeat left top; -} - *html { height: 100%; + overflow-y: auto; background:#F2F2F2 url(leftnavbg.jpg) no-repeat left top; } body { margin: 0; padding: 0; height: 100%; - /*overflow: hidden;*/ background:#F2F2F2 url(leftnavbg.jpg) no-repeat left top; direction: ltr } @@ -23,7 +18,6 @@ body { background: #4ce440; padding: 0 13px; width:100%; - position: relative; } #ribbon .breadcrumb { @@ -35,7 +29,7 @@ body { } #ribbon .breadcrumb a,#ribbon .breadcrumb { color: #fff!important; - text-decoration: none!Important + text-decoration: none!important } .breadcrumb>li { display: inline-block; @@ -43,18 +37,15 @@ text-shadow:none!important;padding-right:10px; } .breadcrumb li:after {content:" > "} .breadcrumb li:last-child:after {content:""} -#ribbon .breadcrumb>.active,#ribbon .breadcrumb li: last-child { +#ribbon .breadcrumb>.active,#ribbon .breadcrumb li:last-child { color: #E4E4E4 } .btn { border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; -/* box-shadow: inset 0 -2px 0 rgba(0,0,0,.05); - -moz-box-shadow: inset 0 -2px 0 rgba(0,0,0,.05); - -webkit-box-shadow: inset 0 -2px 0 rgba(0,0,0,.05)*/ } -.btn: active { +.btn:active { position: relative; top: 1px; left: 1px @@ -73,9 +64,8 @@ text-shadow:none!important;padding-right:10px; margin: 0 8px 0 0; cursor: pointer } -.btn.btn-ribbon:hover -{ - background-color:#2baa09; +.btn.btn-ribbon:hover { + background-color:#2baa09; } .btn.btn-ribbon>i { font-size: 111% @@ -123,11 +113,11 @@ text-shadow:none!important;padding-right:10px; -moz-border-radius: 0; -webkit-border-radius: 0 } -#shortcut ul li .jarvismetro-tile: hover { +#shortcut ul li .jarvismetro-tile:hover { color: #fff; text-decoration: none } -#shortcut ul li .jarvismetro-tile: active,#shortcut ul li .jarvismetro-tile: focus { +#shortcut ul li .jarvismetro-tile:active,#shortcut ul li .jarvismetro-tile:focus { left: 0; top: 0 } @@ -148,7 +138,7 @@ text-shadow:none!important;padding-right:10px; padding: 5px; position: relative } -.jarvismetro-tile: hover { +.jarvismetro-tile:hover { z-index: 10; -webkit-transform: scale(1.07); -moz-transform: scale(1.07) @@ -160,7 +150,7 @@ text-shadow:none!important;padding-right:10px; .jarvismetro-tile.double { width: 249px } -.jarvismetro-tile: active { +.jarvismetro-tile:active { top: 1px; left: 1px } @@ -187,7 +177,7 @@ text-shadow:none!important;padding-right:10px; .selected { border: 1px solid #0091d9!important } -.selected: before { +.selected::before { display: block; position: absolute; content: "\f00c"; @@ -196,7 +186,7 @@ text-shadow:none!important;padding-right:10px; font-family: FontAwesome; z-index: 2 } -.selected: after { +.selected::after { width: 0; height: 0; border-top: 35px solid #0091d9; diff --git a/Mtxfw.VipSite/Mtxfw.VipSite.csproj b/Mtxfw.VipSite/Mtxfw.VipSite.csproj index 9e741d5..5de1b6a 100644 --- a/Mtxfw.VipSite/Mtxfw.VipSite.csproj +++ b/Mtxfw.VipSite/Mtxfw.VipSite.csproj @@ -212,6 +212,7 @@ + @@ -2722,6 +2723,13 @@ Admin_Member_khjb.aspx + + Admin_Member_LevelConfig.aspx + ASPXCodeBehind + + + Admin_Member_LevelConfig.aspx + Admin_Member_link.aspx ASPXCodeBehind diff --git a/Mtxfw.VipSite/Web.config b/Mtxfw.VipSite/Web.config index 6d752b6..227f22c 100644 --- a/Mtxfw.VipSite/Web.config +++ b/Mtxfw.VipSite/Web.config @@ -3,9 +3,9 @@ - + - + diff --git a/Mtxfw.VipSite/left.aspx b/Mtxfw.VipSite/left.aspx index 43445a4..f7119f0 100644 --- a/Mtxfw.VipSite/left.aspx +++ b/Mtxfw.VipSite/left.aspx @@ -209,7 +209,7 @@ <% if (IFStores == 1) { %> - <%if (MemberJS.IndexOf("VIP会员列表") != -1 || MemberJS.IndexOf("提货点列表") != -1 || MemberJS.IndexOf("代理列表") != -1 || MemberJS.IndexOf("爆品专区列表") != -1 || MemberJS.IndexOf("实名认证列表") != -1 || MemberJS.IndexOf("晋级会员查询") != -1 || MemberJS.IndexOf("接点图谱查询") != -1 || MemberJS.IndexOf("推荐图谱查询") != -1 || MemberJS.IndexOf("会员级别升级记录") != -1 || MemberJS.IndexOf("空单变实单记录") != -1) + <%if (MemberJS.IndexOf("VIP会员列表") != -1 || MemberJS.IndexOf("提货点列表") != -1 || MemberJS.IndexOf("代理列表") != -1 || MemberJS.IndexOf("爆品专区列表") != -1 || MemberJS.IndexOf("实名认证列表") != -1 || MemberJS.IndexOf("晋级会员查询") != -1 || MemberJS.IndexOf("接点图谱查询") != -1 || MemberJS.IndexOf("推荐图谱查询") != -1 || MemberJS.IndexOf("会员级别升级记录") != -1 || MemberJS.IndexOf("空单变实单记录") != -1 || MemberJS.IndexOf("升级和分配设置") != -1) { %>
                • 会员级别升级记录
                • <%} %> - + <%if (MemberJS.IndexOf("升级和分配设置") != -1) + { %> +
                • 升级和分配设置
                • + <%} %>
                diff --git a/Mtxfw.VipSite/pay/hfpay_notify_url_huiyuan.aspx.cs b/Mtxfw.VipSite/pay/hfpay_notify_url_huiyuan.aspx.cs index a22e7ab..3b99db0 100644 --- a/Mtxfw.VipSite/pay/hfpay_notify_url_huiyuan.aspx.cs +++ b/Mtxfw.VipSite/pay/hfpay_notify_url_huiyuan.aspx.cs @@ -890,7 +890,7 @@ namespace Mtxfw.VipSite ///lym修改 Mtxfw.Model.P_Guige ggmodel = new DAL.P_Guige().GetModel(Convert.ToInt32(OrderModel.pid)); var xfz = ggmodel.G_JG4; - DAL.MemberStatistics_huiyuan.UpdteYJ(config, umodel, money, gtype, dt, OrderModel.ttype, OrderModel.ptype, peitype, OrderModel.orderid, OrderModel.Id, OrderModel.Province, OrderModel.City, OrderModel.County, OrderModel.Tradingarea); + DAL.MemberStatistics_huiyuan.UpdteYJ(config, umodel, money, xfz, gtype, dt, OrderModel.ttype, OrderModel.ptype, peitype, OrderModel.orderid, OrderModel.Id, OrderModel.Province, OrderModel.City, OrderModel.County, OrderModel.Tradingarea); daoorder.UpdateqyState(0, "1", dt, OrderModel.Id); daoProduct.UpdateJiangLi(OrderModel.pid, 1); diff --git a/Mtxfw.VipSite/weixin/ex.txt b/Mtxfw.VipSite/weixin/ex.txt index 8d66b3d..c31bdb4 100644 --- a/Mtxfw.VipSite/weixin/ex.txt +++ b/Mtxfw.VipSite/weixin/ex.txt @@ -1,10 +1,18 @@ -System.InvalidOperationException: ConnectionString 属性尚未初始化。 - 在 System.Data.SqlClient.SqlConnection.PermissionDemand() - 在 System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) +System.Data.SqlClient.SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: TCP Provider, error: 0 - 等待的操作过时。) ---> System.ComponentModel.Win32Exception (0x80004005): 等待的操作过时。 + 在 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) + 在 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) + 在 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) + 在 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) + 在 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) + 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) + 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) + 在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) 在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) 在 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) 在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) 在 System.Data.SqlClient.SqlConnection.Open() - 在 Mtxfw.Utility.SqlDbHelper_U.GetDataReader(String sql, SqlParameter[] Params) - 在 Mtxfw.DAL.user_info.IsLoginWeb(Int32 gtype, String AdminName, String AdminPwd, String& MemberCard, Int32& MemberId, Int32& ContactID, Int32& IFStores, String& realname, String& realname2, String& phone, String& phone2, String& SFZ, String& BBSConent, String& CompanyCert, String& NCName, String& avatar, String& SJRememberIDS, String& ContactIDS, Int32& IFUpUserName, Int32& IFBecomeBusiness, Int32& uutype, String& MemberJS, Int32& MemberuLevel, Int32& MemberuLevel2, Int32& MemberuLevel3, Int32& MemberuLevel6, Int32& MemberuLevel8, Int32& MemberuLevel14, Int32& MemberuLevel16, Int32& MemberuLevel29, Int32& MemberShippingID, Int32& IFEditBank, Int32& IFPhone, Double& umoney, Double& umoney15, Double& umoney20, Double& umoney22, Double& umoney26, Double& umoney28, Double& umoney29, Double& umoney30, Double& umoney33, Double& umoney39) - 在 Mtxfw.VipSite.ashxAjax.GetLogin2(HttpContext context) 位置 D:\renyi_workspace\RenyiServer\Mtxfw.VipSite\Ajax.ashx.cs:行号 3074 \ No newline at end of file + 在 Mtxfw.Utility.SqlDbHelper_U.GetDataReader(String sql, SqlParameter[] Params) 位置 D:\renyi_workspace\RenyiServer\Mtxfw.Utility\SqlDbHelper_U.cs:行号 596 + 在 Mtxfw.DAL.user_info.IsLoginWeb(Int32 gtype, String AdminName, String AdminPwd, String& MemberCard, Int32& MemberId, Int32& ContactID, Int32& IFStores, String& realname, String& realname2, String& phone, String& phone2, String& SFZ, String& BBSConent, String& CompanyCert, String& NCName, String& avatar, String& SJRememberIDS, String& ContactIDS, Int32& IFUpUserName, Int32& IFBecomeBusiness, Int32& uutype, String& MemberJS, Int32& MemberuLevel, Int32& MemberuLevel2, Int32& MemberuLevel3, Int32& MemberuLevel6, Int32& MemberuLevel8, Int32& MemberuLevel14, Int32& MemberuLevel16, Int32& MemberuLevel29, Int32& MemberShippingID, Int32& IFEditBank, Int32& IFPhone, Double& umoney, Double& umoney15, Double& umoney20, Double& umoney22, Double& umoney26, Double& umoney28, Double& umoney29, Double& umoney30, Double& umoney33, Double& umoney39) 位置 D:\renyi_workspace\RenyiServer\Mtxfw.DAL\user_info.cs:行号 1902 + 在 Mtxfw.VipSite.ashxAjax.GetLogin2(HttpContext context) 位置 D:\renyi_workspace\RenyiServer\Mtxfw.VipSite\Ajax.ashx.cs:行号 3074 +ClientConnectionId:00000000-0000-0000-0000-000000000000 +Error Number:258,State:0,Class:20 \ No newline at end of file diff --git a/Mtxfw.VipSite/xapiajax.ashx.cs b/Mtxfw.VipSite/xapiajax.ashx.cs index 1ba243d..07ca6f5 100644 --- a/Mtxfw.VipSite/xapiajax.ashx.cs +++ b/Mtxfw.VipSite/xapiajax.ashx.cs @@ -9617,11 +9617,12 @@ namespace Mtxfw.VipSite { P_VIP_P = Convert.ToDouble(adoGuige.G_JG).ToString("f2"); JF = Convert.ToDouble(adoGuige.G_JF).ToString("f2"); - P_Market_P = Convert.ToDouble(adoGuige.G_JG + adoGuige.G_JF).ToString("f2"); + P_Market_P = Convert.ToDouble(adoGuige.G_JG2).ToString("f2"); } string x = "220x220"; + //商城进这里lym strdata += "{\"_id\":\"" + P_ID + "\",\"name\":\"" + Mtxfw.Utility.Common.ReplaceString(P_NAME) + "\",\"scje\":\"" + P_Market_P + "\",\"jf\":\"" + JF + "\",\"xjje\":\"" + P_M_P + "\",\"hyje\":\"" + P_VIP_P + "\",\"image\":\"" + (P_images.IndexOf("http") != -1 ? P_images + "?imageView2/2/w/220/h/220/q/75" : config.webUrl + Mtxfw.Utility.Common.GetCoverPic(P_images, x, "cut")) + "\"},"; } if (strdata.Substring(strdata.Length - 1, 1) == ",") @@ -15339,10 +15340,10 @@ namespace Mtxfw.VipSite if (b) { - Mtxfw.Model.user_info umodel = new Mtxfw.DAL.user_info().GetModel(userId); + Mtxfw.Model.user_info umodel = new Mtxfw.DAL.user_info().GetModel(userId); if (umodel != null) { - + if (umodel.LoginId2 == LoginId) { @@ -15407,6 +15408,13 @@ namespace Mtxfw.VipSite { utype = butype; } + //非热卖商品,会员小于2不能购买 + if (umodel.uLevel < 2 && utype == 0) + { + b = false; + data = "{\"status\":0,\"msg\":\"会员等级不够!\"}"; + } + if (utype == 2) { if (P_CATEGORYs.IndexOf(",146,") != -1) @@ -16444,7 +16452,12 @@ namespace Mtxfw.VipSite Double money8 = Convert.ToDouble(OrderModel.Totalprice9.ToString("f2"));// if (utype == 0) { - DAL.MemberStatistics.UpdteYJ(config, umodel, money, money0, money2, money3, gtype, dt, OrderModel.ttype, OrderModel.ptype, peitype, OrderModel.orderid, OrderModel.Id, OrderModel.Province, OrderModel.City, OrderModel.County, OrderModel.Tradingarea); + //DAL.MemberStatistics.UpdteYJ(config, umodel, money, money0, money2, money3, gtype, dt, OrderModel.ttype, OrderModel.ptype, peitype, OrderModel.orderid, OrderModel.Id, OrderModel.Province, OrderModel.City, OrderModel.County, OrderModel.Tradingarea); + Mtxfw.Model.P_Guige ggmodel = new DAL.P_Guige().GetModel(Convert.ToInt32(OrderModel.pid)); + var xfz = ggmodel.G_JG4; + ///lym修改 这里变成商城余额支付了 + //DAL.MemberStatistics.UpdteYJ(config, umodel, money, money0, money2, money3, gtype, dt, OrderModel.ttype, OrderModel.ptype, peitype, OrderModel.orderid, OrderModel.Id, OrderModel.Province, OrderModel.City, OrderModel.County, OrderModel.Tradingarea); + DAL.MemberStatistics_huiyuan.UpdteYJ(config, umodel, money, xfz, gtype, dt, OrderModel.ttype, OrderModel.ptype, peitype, OrderModel.orderid, OrderModel.Id, OrderModel.Province, OrderModel.City, OrderModel.County, OrderModel.Tradingarea); } else if (utype == 2) { @@ -23755,8 +23768,111 @@ namespace Mtxfw.VipSite zhsxf = 0.00; } int wgkcount = 0, ygkcount = umodel.uLevel20, wgkcount0 = 0, ygkcount0 = umodel.uLevel23; - - strdata = "\"userInfo\":{\"id\":\"" + umodel.Id + "\",\"openid\":\"" + umodel.openid + "\",\"yaoqingma\":\"" + Mtxfw.Utility.Security.encrypt(umodel.Id) + "\",\"IFYGM\":" + IFYGM + ",\"IFEditBank\":" + IFEditBank + ",\"IFPhone\":" + (Phone == "" ? 0 : 1) + ",\"yqm\":\"" + yqm + "\",\"uLevel\":\"" + struLevel + "\",\"uLevel0\":\"" + struLevel0 + "\",\"uLevel1\":\"" + struLevel1 + "\",\"uLevel2\":" + umodel.uLevel2 + ",\"sjuLevel\":" + umodel.uLevel16 + ",\"sjuLevel0\":" + umodel.uLevel30 + ",\"sjuLevel1\":" + umodel.uLevel39 + ",\"ifsmrz\":" + umodel.uLevel18 + ",\"dluLevel\":" + umodel.uLevel25 + ",\"tgyuLevel\":" + (umodel.uLevel33 > 1 ? 3 : umodel.uLevel33) + ",\"ifyjhsj\":" + umodel.uLevel34 + ",\"yjhsjnum\":" + umodel.uLevel35 + ",\"Paypush\":\"" + umodel.uLevel36 + "\",\"UserName\":\"" + umodel.UserName + "\",\"NCName\":\"" + NCName + "\",\"RealName\":\"" + umodel.RealName + "\",\"Phone\":\"" + Phone + "\",\"Email\":\"" + umodel.Email + "\",\"UserPic\":\"" + (UserPic != "" ? Mtxfw.Utility.Common.cminimage(UserPic) : "") + "\",\"Province\":\"" + umodel.Province + "\",\"City\":\"" + umodel.City + "\",\"County\":\"" + umodel.County + "\",\"ifywc\":" + umodel.uLevel19 + ",\"wgkcount\":" + wgkcount + ",\"ygkcount\":" + ygkcount + ",\"wgkcount0\":" + wgkcount0 + ",\"ygkcount0\":" + ygkcount0 + ",\"zsymoney\":\"" + zsymoney + "\",\"jrsymoney\":\"" + jrsymoney + "\",\"zrsymoney\":\"" + zrsymoney + "\",\"xjye\":\"" + xjye + "\",\"xjjye\":\"" + xjjye + "\",\"jhmye\":\"" + jhmye + "\",\"tgmeye\":\"" + tgmeye + "\",\"mfye\":\"" + mfye + "\",\"ggjfye\":\"" + ggjfye + "\",\"gxzye\":\"" + gxzye + "\",\"hyzye\":\"" + hyzye + "\",\"ksdye\":\"" + ksdye + "\",\"lljye\":\"" + lljye + "\",\"ggzye\":\"" + ggzye + "\",\"zzedze\":\"" + zzedze + "\",\"zzedye\":\"" + zzedye + "\",\"zzjfye\":\"" + zzjfye + "\",\"hkksye\":\"" + hkksye + "\",\"hkdjye\":\"" + hkdjye + "\",\"hkjdye\":\"" + hkjdye + "\",\"btjye\":\"" + btjye + "\",\"btzye\":\"" + btzye + "\",\"GGEnable\":\"" + config.FHEnable1 + "\",\"TXEnable\":\"" + TXEnable + "\",\"ZZEnable\":\"" + ZZEnable + "\",\"ZZEnable0\":\"" + ZZEnable0 + "\",\"ZZEnable1\":\"" + ZZEnable1 + "\",\"ZCEnable\":\"" + ZCEnable + "\",\"ZHEnable\":\"" + ZHEnable + "\",\"ZHEnable0\":\"" + ZHEnable0 + "\",\"ZHEnable1\":\"" + ZHEnable1 + "\",\"FHEnable\":\"" + config.FHEnable + "\",\"bdshEnable\":\"" + bdshEnable + "\",\"zhsxf\":\"" + zhsxf.ToString() + "\",\"ksdjg\":\"" + config.webMoney79 + "\",\"KHName\":\"" + umodel.ProductName + "\",\"BankName\":\"" + umodel.RealName2 + "\",\"BankCard\":\"" + umodel.Phone2 + "\",\"BankKHH\":\"" + umodel.PostalCode + "\",\"AliAccount\":\"" + umodel.AliAccount + "\",\"AliName\":\"" + umodel.AliName + "\",\"aliimage\":\"" + (umodel.aliimage == "" ? "" : Mtxfw.Utility.Common.cmaximage(umodel.aliimage)) + "\",\"weixinimage\":\"" + (umodel.weixinimage == "" ? "" : Mtxfw.Utility.Common.cmaximage(umodel.weixinimage)) + "\",\"qbaddress\":\"" + umodel.qbaddress + "\",\"ifshowzzjf\":\"1\",\"txtype\":\"" + config.HFHEnable + "\",\"txsxf\":\"" + config.webMoney50 + "\",\"txsxf0\":\"" + config.webMoney51 + "\",\"iftx\":\"" + iftx + "\",\"txtype\":\"" + config.CQEnable + "\",\"txmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney64)) + "\",\"txmsg0\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney93)) + "\",\"zzmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney94)) + "\",\"zzmsg0\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney95)) + "\",\"zzmsg1\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney96)) + "\",\"zzmsg2\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney97)) + "\",\"czmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney152)) + "\",\"upmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney102)) + "\",\"tpaddress\":\"" + config.webMoney47 + "\",\"aliimage0\":\"" + (config.webMoney55 == "" ? "" : config.webUrl + Mtxfw.Utility.Common.GetCoverPic(config.webMoney55, "1000x1000", config.webImgMode)) + "\",\"weixinimage0\":\"" + (config.webMoney56 == "" ? "" : config.webUrl + Mtxfw.Utility.Common.GetCoverPic(config.webMoney56, "1000x1000", config.webImgMode)) + "\"}"; + + // strdata = "\"userInfo\":{\"id\":\"" + umodel.Id + "\",\"openid\":\"" + umodel.openid + "\",\"yaoqingma\":\"" + Mtxfw.Utility.Security.encrypt(umodel.Id) + "\",\"IFYGM\":" + IFYGM + ",\"IFEditBank\":" + IFEditBank + ",\"IFPhone\":" + (Phone == "" ? 0 : 1) + ",\"yqm\":\"" + yqm + "\",\"uLevel\":\"" + struLevel + "\",\"uLevel0\":\"" + struLevel0 + "\",\"uLevel1\":\"" + struLevel1 + "\",\"uLevel2\":" + umodel.uLevel2 + ",\"sjuLevel\":" + umodel.uLevel16 + ",\"sjuLevel0\":" + umodel.uLevel30 + ",\"sjuLevel1\":" + umodel.uLevel39 + ",\"ifsmrz\":" + umodel.uLevel18 + ",\"dluLevel\":" + umodel.uLevel25 + ",\"tgyuLevel\":" + (umodel.uLevel33 > 1 ? 3 : umodel.uLevel33) + ",\"ifyjhsj\":" + umodel.uLevel34 + ",\"yjhsjnum\":" + umodel.uLevel35 + ",\"Paypush\":\"" + umodel.uLevel36 + "\",\"UserName\":\"" + umodel.UserName + "\",\"NCName\":\"" + NCName + "\",\"RealName\":\"" + umodel.RealName + "\",\"Phone\":\"" + Phone + "\",\"Email\":\"" + umodel.Email + "\",\"UserPic\":\"" + (UserPic != "" ? Mtxfw.Utility.Common.cminimage(UserPic) : "") + "\",\"Province\":\"" + umodel.Province + "\",\"City\":\"" + umodel.City + "\",\"County\":\"" + umodel.County + "\",\"ifywc\":" + umodel.uLevel19 + ",\"wgkcount\":" + wgkcount + ",\"ygkcount\":" + ygkcount + ",\"wgkcount0\":" + wgkcount0 + ",\"ygkcount0\":" + ygkcount0 + ",\"zsymoney\":\"" + zsymoney + "\",\"jrsymoney\":\"" + jrsymoney + "\",\"zrsymoney\":\"" + zrsymoney + "\",\"xjye\":\"" + xjye + "\",\"xjjye\":\"" + xjjye + "\",\"jhmye\":\"" + jhmye + "\",\"tgmeye\":\"" + tgmeye + "\",\"mfye\":\"" + mfye + "\",\"ggjfye\":\"" + ggjfye + "\",\"gxzye\":\"" + gxzye + "\",\"hyzye\":\"" + hyzye + "\",\"ksdye\":\"" + ksdye + "\",\"lljye\":\"" + lljye + "\",\"ggzye\":\"" + ggzye + "\",\"zzedze\":\"" + zzedze + "\",\"zzedye\":\"" + zzedye + "\",\"zzjfye\":\"" + zzjfye + "\",\"hkksye\":\"" + hkksye + "\",\"hkdjye\":\"" + hkdjye + "\",\"hkjdye\":\"" + hkjdye + "\",\"btjye\":\"" + btjye + "\",\"btzye\":\"" + btzye + "\",\"GGEnable\":\"" + config.FHEnable1 + "\",\"TXEnable\":\"" + TXEnable + "\",\"ZZEnable\":\"" + ZZEnable + "\",\"ZZEnable0\":\"" + ZZEnable0 + "\",\"ZZEnable1\":\"" + ZZEnable1 + "\",\"ZCEnable\":\"" + ZCEnable + "\",\"ZHEnable\":\"" + ZHEnable + "\",\"ZHEnable0\":\"" + ZHEnable0 + "\",\"ZHEnable1\":\"" + ZHEnable1 + "\",\"FHEnable\":\"" + config.FHEnable + "\",\"bdshEnable\":\"" + bdshEnable + "\",\"zhsxf\":\"" + zhsxf.ToString() + "\",\"ksdjg\":\"" + config.webMoney79 + "\",\"KHName\":\"" + umodel.ProductName + "\",\"BankName\":\"" + umodel.RealName2 + "\",\"BankCard\":\"" + umodel.Phone2 + "\",\"BankKHH\":\"" + umodel.PostalCode + "\",\"AliAccount\":\"" + umodel.AliAccount + "\",\"AliName\":\"" + umodel.AliName + "\",\"aliimage\":\"" + (umodel.aliimage == "" ? "" : Mtxfw.Utility.Common.cmaximage(umodel.aliimage)) + "\",\"weixinimage\":\"" + (umodel.weixinimage == "" ? "" : Mtxfw.Utility.Common.cmaximage(umodel.weixinimage)) + "\",\"qbaddress\":\"" + umodel.qbaddress + "\",\"ifshowzzjf\":\"1\",\"txtype\":\"" + config.HFHEnable + "\",\"txsxf\":\"" + config.webMoney50 + "\",\"txsxf0\":\"" + config.webMoney51 + "\",\"iftx\":\"" + iftx + "\",\"txtype\":\"" + config.CQEnable + "\",\"txmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney64)) + "\",\"txmsg0\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney93)) + "\",\"zzmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney94)) + "\",\"zzmsg0\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney95)) + "\",\"zzmsg1\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney96)) + "\",\"zzmsg2\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney97)) + "\",\"czmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney152)) + "\",\"upmsg\":\"" + Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney102)) + "\",\"tpaddress\":\"" + config.webMoney47 + "\",\"aliimage0\":\"" + (config.webMoney55 == "" ? "" : config.webUrl + Mtxfw.Utility.Common.GetCoverPic(config.webMoney55, "1000x1000", config.webImgMode)) + "\",\"weixinimage0\":\"" + (config.webMoney56 == "" ? "" : config.webUrl + Mtxfw.Utility.Common.GetCoverPic(config.webMoney56, "1000x1000", config.webImgMode)) + "\"}"; + // 使用 Dictionary + JsonSerializer 方式构建 JSON,更易维护 + var userInfo = new Dictionary + { + ["id"] = umodel.Id, + ["openid"] = umodel.openid, + ["yaoqingma"] = Mtxfw.Utility.Security.encrypt(umodel.Id), + ["IFYGM"] = IFYGM, + ["IFEditBank"] = IFEditBank, + ["IFPhone"] = string.IsNullOrEmpty(Phone) ? 0 : 1, + ["yqm"] = yqm, + ["uLevel"] = struLevel, + ["iLevel"] = uLevel, + ["uLevel0"] = struLevel0, + ["uLevel1"] = struLevel1, + ["uLevel2"] = umodel.uLevel2, + ["sjuLevel"] = umodel.uLevel16, + ["sjuLevel0"] = umodel.uLevel30, + ["sjuLevel1"] = umodel.uLevel39, + ["ifsmrz"] = umodel.uLevel18, + ["dluLevel"] = umodel.uLevel25, + ["tgyuLevel"] = umodel.uLevel33 > 1 ? 3 : umodel.uLevel33, + ["ifyjhsj"] = umodel.uLevel34, + ["yjhsjnum"] = umodel.uLevel35, + ["Paypush"] = umodel.uLevel36, + ["UserName"] = umodel.UserName, + ["NCName"] = NCName, + ["RealName"] = umodel.RealName, + ["Phone"] = Phone, + ["Email"] = umodel.Email, + ["UserPic"] = string.IsNullOrEmpty(UserPic) ? "" : Mtxfw.Utility.Common.cminimage(UserPic), + ["Province"] = umodel.Province, + ["City"] = umodel.City, + ["County"] = umodel.County, + ["ifywc"] = umodel.uLevel19, + ["wgkcount"] = wgkcount, + ["ygkcount"] = ygkcount, + ["wgkcount0"] = wgkcount0, + ["ygkcount0"] = ygkcount0, + ["zsymoney"] = zsymoney, + ["jrsymoney"] = jrsymoney, + ["zrsymoney"] = zrsymoney, + ["xjye"] = xjye, + ["xjjye"] = xjjye, + ["jhmye"] = jhmye, + ["tgmeye"] = tgmeye, + ["mfye"] = mfye, + ["ggjfye"] = ggjfye, + ["gxzye"] = gxzye, + ["hyzye"] = hyzye, + ["ksdye"] = ksdye, + ["lljye"] = lljye, + ["ggzye"] = ggzye, + ["zzedze"] = zzedze, + ["zzedye"] = zzedye, + ["zzjfye"] = zzjfye, + ["hkksye"] = hkksye, + ["hkdjye"] = hkdjye, + ["hkjdye"] = hkjdye, + ["btjye"] = btjye, + ["btzye"] = btzye, + ["GGEnable"] = config.FHEnable1, + ["TXEnable"] = TXEnable, + ["ZZEnable"] = ZZEnable, + ["ZZEnable0"] = ZZEnable0, + ["ZZEnable1"] = ZZEnable1, + ["ZCEnable"] = ZCEnable, + ["ZHEnable"] = ZHEnable, + ["ZHEnable0"] = ZHEnable0, + ["ZHEnable1"] = ZHEnable1, + ["FHEnable"] = config.FHEnable, + ["bdshEnable"] = bdshEnable, + ["zhsxf"] = zhsxf.ToString(), + ["ksdjg"] = config.webMoney79, + ["KHName"] = umodel.ProductName, + ["BankName"] = umodel.RealName2, + ["BankCard"] = umodel.Phone2, + ["BankKHH"] = umodel.PostalCode, + ["AliAccount"] = umodel.AliAccount, + ["AliName"] = umodel.AliName, + ["aliimage"] = string.IsNullOrEmpty(umodel.aliimage) ? "" : Mtxfw.Utility.Common.cmaximage(umodel.aliimage), + ["weixinimage"] = string.IsNullOrEmpty(umodel.weixinimage) ? "" : Mtxfw.Utility.Common.cmaximage(umodel.weixinimage), + ["qbaddress"] = umodel.qbaddress, + ["ifshowzzjf"] = 1, + ["txtype"] = config.HFHEnable, + ["txsxf"] = config.webMoney50, + ["txsxf0"] = config.webMoney51, + ["iftx"] = iftx, + ["txmsg"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney64)), + ["txmsg0"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney93)), + ["zzmsg"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney94)), + ["zzmsg0"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney95)), + ["zzmsg1"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney96)), + ["zzmsg2"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney97)), + ["czmsg"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney152)), + ["upmsg"] = Mtxfw.Utility.Common.ReplaceString(Mtxfw.Utility.Common.InputText(config.webMoney102)), + ["tpaddress"] = config.webMoney47, + ["aliimage0"] = string.IsNullOrEmpty(config.webMoney55) ? "" : config.webUrl + Mtxfw.Utility.Common.GetCoverPic(config.webMoney55, "1000x1000", config.webImgMode), + ["weixinimage0"] = string.IsNullOrEmpty(config.webMoney56) ? "" : config.webUrl + Mtxfw.Utility.Common.GetCoverPic(config.webMoney56, "1000x1000", config.webImgMode) + }; + strdata = "\"userInfo\":" + JsonConvert.SerializeObject(userInfo); + //将上一行字符串的拼接方法用更先进的写法重写 + + } return strdata; } diff --git a/修改说明.txt b/修改说明.txt index d6ae762..ab2f2c9 100644 --- a/修改说明.txt +++ b/修改说明.txt @@ -20,7 +20,7 @@ log4net: log4net 是 Apache 软件基金会旗下著名组件 log4j 的 .NET 4. 管理员菜单权限更新脚本: update Adminjs set -js='VIP会员列表 | 提货点列表 | 实名认证列表 | 推荐图谱查询 | 修改推荐人 | 删除会员 | 注册新会员 | 修改余额 | 修改会员资料 | 会员级别升级记录 | 高级管理功能 | 资讯管理 | 企业介绍 | 发图素材 | 健康知识 | 修改隐私政策 | 修改用户服务协议 | 客服信息管理 | 滚动图片管理 | 微信菜单管理 | 操作教程 | 视频管理 | 奖金详情 | 删除奖金明细 | 充值管理 | 提现管理 | 导出数据 | 盛世丰花优选商品列表 | 热卖推荐商品列表 | 订单列表 | 商品分类管理 | 运费设置 | 管理员列表 | 角色管理 | 系统设置 | 数据管理 | 登录日志 | 操作日志 | 修改兑换券 | 兑换商城商品列表 | 健康译站管理 |' +js='VIP会员列表 | 提货点列表 | 实名认证列表 | 推荐图谱查询 | 修改推荐人 | 删除会员 | 注册新会员 | 修改余额 | 修改会员资料 | 会员级别升级记录 | 高级管理功能 | 资讯管理 | 企业介绍 | 发图素材 | 健康知识 | 修改隐私政策 | 修改用户服务协议 | 客服信息管理 | 滚动图片管理 | 微信菜单管理 | 操作教程 | 视频管理 | 奖金详情 | 删除奖金明细 | 充值管理 | 提现管理 | 导出数据 | 盛世丰花优选商品列表 | 热卖推荐商品列表 | 订单列表 | 商品分类管理 | 运费设置 | 管理员列表 | 角色管理 | 系统设置 | 数据管理 | 登录日志 | 操作日志 | 修改兑换券 | 兑换商城商品列表 | 健康译站管理 | 升级和分配设置 |' where id=1