public void PushInviteSuccess(long id) { var pfDAC = new ProfitDetailDAC(); var accountId = pfDAC.GetAccountId(id); var regId = RedisHelper.StringGet($"FiiiPay:Notice:UserId:{accountId}"); var lang = RedisHelper.StringGet(REDIS_LANGUAGE_DBINDEX, $"FiiiPay:Language:{accountId}") ?? "en"; string titleKey = "奖励FIII"; string subTitleKey = "奖励子标题"; if (!(_resourcePropertyNames.Contains(titleKey) && _resourcePropertyNames.Contains(subTitleKey))) { throw new Exception("没有找到资源"); } var title = ResourceHelper.FiiiPay.GetResource(titleKey, new CultureInfo(lang)); var subTitle = ResourceHelper.FiiiPay.GetResource(subTitleKey, new CultureInfo(lang)); string noticeId = ""; MessagesComponent.AddMessage(accountId, UserType.User, id.ToString(), FiiiPayPushType.TYPE_INVITE_REWARD, titleKey, subTitleKey, "FIII", title, subTitle, out noticeId); RegPush(FiiiPayPushType.TYPE_INVITE_REWARD, new List <string> { regId }, id, title, subTitle, noticeId); LogHelper.Info($"--------{lang}------{title}----------{subTitle}"); }
public void PushInviteSuccess(long id) { var pfDAC = new ProfitDetailDAC(); var accountId = pfDAC.GetAccountId(id); var regId = RedisHelper.StringGet($"{FiiiPOS_APP_Notice_MerchantId}:{accountId}"); var lang = RedisHelper.StringGet(REDIS_LANGUAGE_DBINDEX, $"{FiiiPOS_APP_Language_MerchantId}:{accountId}") ?? "en"; string titleKey = "奖励FIII"; string subTitleKey = "奖励子标题"; var title = ResourceHelper.FiiiPos.GetResource(titleKey, new CultureInfo(lang)); var subTitle = ResourceHelper.FiiiPos.GetResource(subTitleKey, new CultureInfo(lang)); string noticeId = ""; MessagesComponent.AddMessage(accountId, UserType.User, id.ToString(), FiiiPayPushType.TYPE_INVITE_REWARD, titleKey, subTitleKey, "FIII", title, subTitle, out noticeId); RegPush(FiiiPayPushType.TYPE_INVITE_REWARD, new List <string> { regId }, id, title, subTitle, noticeId); LogHelper.Info($"--------{lang}------{title}----------{subTitle}"); }