Exemplo n.º 1
0
        protected void FlushAT_Click(object sender, EventArgs e)
        {
            try
            {
                Model.wx_userweixin weixin = GetWeiXinCode();

                string error = "";
                WeiXinCRMComm.FlushAccessToken(weixin.id, out error);
                if (error != "")
                {
                    JscriptMsg(error, "", "Error");
                    return;
                }

                JscriptMsg("Access_Token更新成功!", "wxMenu.aspx", "Success");
            }
            catch (Exception ex)
            {
                JscriptMsg("执行过程出现错误:" + ex.Message, "back", "Error");
                return;
            }
        }