示例#1
0
        protected void btnSave_Click(object sender, System.EventArgs e)
        {
            SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);

            if (masterSettings.WeixinAppId != this.txtAppId.Text.Trim())
            {
                WeiXinHelper.ClearWeiXinMediaID();
                MemberHelper.ClearAllOpenId();
                ScanHelp.ClearScanBind("WX");
            }
            masterSettings.WeixinAppId     = this.txtAppId.Text.Trim();
            masterSettings.WeixinAppSecret = this.txtAppSecret.Text.Trim();
            SettingsManager.Save(masterSettings);
            Globals.RefreshWeiXinToken();
            this.ShowMsgAndReUrl("修改成功", true, "WXConfigBindOK.aspx");
        }