public static ErrorEntity setAccount(string account, string nickName, string password5, string accessToken, bool isUpdate = false) { string url = String.Format("https://api.weixin.qq.com/customservice/kfaccount/{0}?access_token={1}", isUpdate ? "update" : "add", accessToken); var obj = new { kf_account = account, nickname = nickName, password = Utils.MD5Encrypt(password5 ) }; return Utils.PostResult<ErrorEntity>(obj, url); }