Ejemplo n.º 1
0
        private static object GetMerchResetPasswordData <TConfig, TData>(TConfig configModel, TData dataModel)
        {
            MerchResetPasswordConfigModel config = Utils.GetCopy <MerchResetPasswordConfigModel>(configModel);
            MerchResetPasswordDataModel   data   = Utils.GetCopy <MerchResetPasswordDataModel>(dataModel);
            var msgData = new
            {
                first    = new { value = config.Title, color = config.FirstColor },
                keyword1 = new { value = data.UserName, color = config.Keynote1Color },
                keyword2 = new { value = data.Password, color = config.Keynote2Color },
                remark   = new { value = config.Remark, color = config.RemarkColor }
            };

            return(msgData);
        }
Ejemplo n.º 2
0
        private void ResetPasswordMessagePush(string openId, string userName, string password)
        {
            string errMsg = string.Empty;
            MerchResetPasswordDataModel dataModel = new MerchResetPasswordDataModel(userName, password);

            if (MessageMana.PushMessage(WeiXinMesageType.MerchResetPassword, openId, dataModel, out errMsg))
            {
                LogHelper.SaveLog(TxtLogType.WeiXin, TxtLogContentType.Common, TxtLogFileType.Day, "true");
            }
            else
            {
                LogHelper.SaveLog(TxtLogType.WeiXin, TxtLogContentType.Common, TxtLogFileType.Day, errMsg);
            }
        }