protected void btnSave1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(this.tdAccountName.Value)) { this.tdResponse1.Text = "客服帐号不能为空"; return; } if (string.IsNullOrEmpty(this.tdAccountNickName.Value)) { this.tdResponse1.Text = "昵称不能为空"; return; } var result = MessageHandler.CreateCustomerServiceAccount(WeixinHelper.GetAccessToken(null), this.tdAccountName.Value, this.tdAccountNickName.Value); this.tdResponse1.Text = result.Body; }