コード例 #1
0
ファイル: article_show.cs プロジェクト: yuebon/YuebonCms
        /// <summary>
        /// 重写虚方法,此方法将在Init事件前执行
        /// </summary>
        protected override void ShowPage()
        {
            int    weixinId = DTRequest.GetQueryInt("wxid");
            string url      = "http://" + DTRequest.GetHost() + HttpContext.Current.Request.RawUrl;

            BLL.weixin_account   wxBll  = new BLL.weixin_account();
            Model.weixin_account modelt = wxBll.GetModel(weixinId);
            if (modelt != null)
            {
                string ticket = JsApiTicketContainer.TryGetJsApiTicket(modelt.appid, modelt.appsecret);
                jssdkUiPackage = JSSDKHelper.GetJsSdkUiPackage(modelt.appid, modelt.appsecret, url);
            }
            this.Init += new EventHandler(article_show_Init);
        }