Esempio n. 1
0
        protected void Save_B_Click(object sender, EventArgs e)
        {
            M_PayPlat wxpay = B_PayPlat.GetModelForWx();

            if (wxpay == null)
            {
                wxpay = new M_PayPlat();
            }
            wxpay.PayPlatName = "微信支付";
            wxpay.payType     = AppID_T.Text;
            wxpay.PayPlatinfo = Secret_T.Text;
            wxpay.AccountID   = MchID_T.Text;
            wxpay.PayClass    = 21;
            wxpay.MD5Key      = Key_T.Text;
            if (wxpay.PayPlatID == 0)
            {
                bll.insert(wxpay);
            }
            else
            {
                bll.UpdateByID(wxpay);
            }
            WxPayConfig.UpdateByMod(wxpay);
            function.WriteSuccessMsg("保存成功!");
        }