局部优化
This commit is contained in:
@@ -107,7 +107,7 @@ namespace Home.Controllers
|
||||
m.Price = dis_price;
|
||||
m.Title = discount.Remark;
|
||||
} else {
|
||||
m.Title = "9";
|
||||
m.Title = "9.5";
|
||||
}
|
||||
if(m.Price<m.MinPrice){
|
||||
m.Price = m.MinPrice;
|
||||
@@ -124,7 +124,7 @@ namespace Home.Controllers
|
||||
foreach(var product in respList)
|
||||
{
|
||||
product.Packages.ForEach(m => {
|
||||
m.Title = "9";
|
||||
m.Title = "9.5";
|
||||
|
||||
var userPrice = userPrices.FirstOrDefault(p => p.PackageId == m.Id && p.ProductId == m.ProductId);
|
||||
if (userPrice != null && userPrice.UserPrice > 0)
|
||||
@@ -141,7 +141,7 @@ namespace Home.Controllers
|
||||
foreach(var product in respList)
|
||||
{
|
||||
product.Packages.ForEach(m => {
|
||||
m.Title = "9";
|
||||
m.Title = "9.5";
|
||||
if ( m.DayCount == 1 ){
|
||||
m.Price = 0.1M;
|
||||
}
|
||||
@@ -824,7 +824,7 @@ namespace Home.Controllers
|
||||
m.Price = dis_price;
|
||||
m.Title = discount.Remark;
|
||||
} else {
|
||||
m.Title = "9";
|
||||
m.Title = "9.5";
|
||||
}
|
||||
if(m.Price<m.MinPrice){
|
||||
m.Price = m.MinPrice;
|
||||
@@ -837,7 +837,7 @@ namespace Home.Controllers
|
||||
var userPrices = await m_ProductUserPriceService.GetProductUserPrice(id, userInfo.UserId);
|
||||
respList.Packages.ForEach(m =>
|
||||
{
|
||||
m.Title = "9";
|
||||
m.Title = "9.5";
|
||||
var userPrice = userPrices.FirstOrDefault(p => p.PackageId == m.Id);
|
||||
if (userPrice != null && userPrice.UserPrice > 0)
|
||||
{
|
||||
|
||||
@@ -581,7 +581,7 @@ namespace Home.Controllers
|
||||
{
|
||||
var notifyOrder = data.FromJsonTo<TaoBaoNotifyModel>();
|
||||
LogHelper.Info("TaoBao process");
|
||||
if(notifyOrder.Payment == "10.00" && notifyOrder.SellerNick == "聚ip商城动态ip代理"){
|
||||
if(notifyOrder.Payment == "10.00" && (notifyOrder.SellerNick == "聚ip商城动态ip代理" || notifyOrder.SellerNick == "老鹰动态pptp")){
|
||||
return "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中";
|
||||
}
|
||||
if (notifyOrder == null || notifyOrder.Tid.NotHas())
|
||||
@@ -618,7 +618,7 @@ namespace Home.Controllers
|
||||
id_code=""
|
||||
};
|
||||
var ret = await m_UserService.Regist(userEntity);
|
||||
msg = "您好,打开网址:juip.com,登录会员名:"+phone+"("+notifyOrder.Payment+"元已充值到此账户),密码:"+pas_result+"。登录后点击网站上方的-产品购买,即可完成开通或续费。恭喜您本次获得优惠券(满4元减1元,满20元减3元,满54元减5元,满130元减15元,满490元减30元),各一张。欢迎您多来淘宝下单";
|
||||
msg = "您好,打开网址:juip.com,登录会员名:"+phone+"("+notifyOrder.Payment+"元已充值到此账户),密码:"+pas_result+"。这个会员名和密码不能直接使用,是用来登录官网的。登录后点击网站上方的-产品购买,即可完成开通或续费。在官网购买的账号密码可以直接使用。恭喜您本次获得优惠券(满4元减1元,满20元减3元,满54元减5元,满130元减15元,满490元减30元),各一张。欢迎您多来淘宝下单(人工客服在线时间:上午八点到晚上十一点半)";
|
||||
if (ret.Code != ResultCode.C_SUCCESS) return msg;
|
||||
|
||||
} else {
|
||||
@@ -628,7 +628,7 @@ namespace Home.Controllers
|
||||
userEntity.TaoBao= notifyOrder.BuyerNick;
|
||||
await m_UserService.Update(userEntity);
|
||||
}
|
||||
msg = "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中,会员号为:"+userEntity.LoginCode+",打开网址:juip.com,登录后点击网站上方的-产品购买,即可完成开通或续费。恭喜您本次获得优惠券(满4元减1元,满20元减3元,满54元减5元,满130元减15元,满490元减30元),各一张。欢迎您多来淘宝下单";
|
||||
msg = "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中,会员号为:"+userEntity.LoginCode+",打开网址:juip.com,登录后点击网站上方的-产品购买,即可完成开通或续费。恭喜您本次获得优惠券(满4元减1元,满20元减3元,满54元减5元,满130元减15元,满490元减30元),各一张。欢迎您多来淘宝下单(人工客服在线时间:上午八点到晚上十一点半)";
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user