Example #1
0
        internal static string CreateSign(object obj)
        {
            string queryString = obj.WriteQueryString(QueryStringOutput.WeixinOutput);

            queryString += Key;
            return(WeUtil.Md5(queryString));
        }
Example #2
0
        public WeixinResult ModifyPasswd(string password)
        {
            TkDebug.AssertArgumentNullOrEmpty(password, "password", null);

            InternalAccount account = new InternalAccount(this, WeUtil.Md5(password));

            return(account.Update());
        }
Example #3
0
        public static WeixinResult Add(string account, string nickName, string password)
        {
            TkDebug.AssertArgumentNullOrEmpty(account, "account", null);
            TkDebug.AssertArgumentNullOrEmpty(nickName, "nickName", null);

            InternalAccount saccount = new InternalAccount
            {
                Account  = account,
                NickName = nickName,
                Password = (password == null ? null : WeUtil.Md5(password))
            };

            return(saccount.Add());
        }
Example #4
0
 public InternalAccount(string account, string password)
 {
     Account  = account;
     Password = password == null ? null : WeUtil.Md5(password);
 }