水滴上线
This commit is contained in:
@@ -852,6 +852,8 @@ namespace Home.Controllers
|
||||
if (productId > 0)
|
||||
accountList = accountList.Where(m => m.ProductId == productId).ToList();
|
||||
var productIds = accountList.Select(m => m.ProductId);
|
||||
//获取套餐名称
|
||||
var package_names = accountList.Select(m => m.PackageName);
|
||||
var connectCountList = accountList.Select(m => m.ConnectCount);
|
||||
if (productIds.Distinct().Count() != 1 || connectCountList.Distinct().Count() != 1)
|
||||
{
|
||||
@@ -860,6 +862,7 @@ namespace Home.Controllers
|
||||
}
|
||||
ViewBag.accounts = accounts;
|
||||
var id = productIds.First().Value;
|
||||
var package_name = package_names.First();
|
||||
|
||||
//0 无状态 1:尊享 2:高级 3:普通
|
||||
var pro_type_flag = 0;
|
||||
@@ -993,7 +996,6 @@ namespace Home.Controllers
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1010,6 +1012,16 @@ namespace Home.Controllers
|
||||
if (userInfo != null)
|
||||
{
|
||||
|
||||
if (productId == 28) {
|
||||
var package_type = "";
|
||||
if(package_name.Contains("-")){
|
||||
string[] arrStr = package_name.Split('-');
|
||||
package_type = arrStr[0] + "-" + arrStr[1] + "-" + arrStr[2];
|
||||
}
|
||||
respList.Packages = respList.Packages.Where(m => m.OriginName.Contains(package_type)).ToList();
|
||||
|
||||
}
|
||||
|
||||
|
||||
//从user表获取用户信息
|
||||
var user_Info = await m_UserService.GetById(userInfo.UserId);
|
||||
|
||||
@@ -657,19 +657,19 @@ namespace Home.Controllers
|
||||
Func<string, Task<string>> process = async (data) =>
|
||||
{
|
||||
var notifyOrder = data.FromJsonTo<TaoBaoNotifyModel>();
|
||||
LogHelper.Info("TaoBao process");
|
||||
if(notifyOrder.Payment == "10.00" && (notifyOrder.SellerNick == "聚ip商城动态ip代理" || notifyOrder.SellerNick == "老鹰动态pptp")||notifyOrder.SellerNick == "强子pptp动态"){
|
||||
return "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中";
|
||||
}
|
||||
|
||||
// if(notifyOrder.Payment == "10.00" && (notifyOrder.SellerNick == "聚ip商城动态ip代理" || notifyOrder.SellerNick == "老鹰动态pptp")||notifyOrder.SellerNick == "强子pptp动态"){
|
||||
// return "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中";
|
||||
// }
|
||||
if (notifyOrder == null || notifyOrder.Tid.NotHas())
|
||||
return "";
|
||||
|
||||
if (m_ScoreService.ExistTaoBaoScore(notifyOrder.Tid))
|
||||
return "";
|
||||
// var phone = notifyOrder.ReceiverMobile.NotHas() ? notifyOrder.ReceiverPhone : notifyOrder.ReceiverMobile;
|
||||
var phone = notifyOrder.ReceiverMobile.NotHas() ? notifyOrder.Tid : notifyOrder.ReceiverMobile;
|
||||
// if (phone.NotHas()) return false;
|
||||
var userEntity = await m_UserService.Query(m => m.TaoBao == notifyOrder.BuyerNick).FirstOrDefaultAsync();
|
||||
var phone = notifyOrder.BuyerNick;
|
||||
// var phone = notifyOrder.BuyerNick;
|
||||
|
||||
string pas_result = "";
|
||||
Random rd = new Random(Guid.NewGuid().GetHashCode());
|
||||
@@ -705,7 +705,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+",打开网址:www.juip.com,登录后点击网站上方的-产品购买,即可完成开通或续费。恭喜您本次获得优惠券(满4元减1元,满20元减3元,满54元减5元,满130元减15元,满490元减30元),各一张。欢迎您多来淘宝下单(人工客服在线时间:上午八点到晚上十一点半)";
|
||||
|
||||
}
|
||||
|
||||
@@ -758,9 +758,11 @@ namespace Home.Controllers
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
long aopic = long.Parse(this.Request.Query["aopic"]);
|
||||
string datainfo = this.Request.Form["json"];
|
||||
var refundInfos = datainfo.FromJsonTo<TaoBaoRefundModel>();
|
||||
LogHelper.Info("淘宝参数回调", $"json={datainfo.ToJson()}");
|
||||
var info = "";
|
||||
if (aopic == 2){
|
||||
info = await m_TaoBaoService.ReceivedMsg(this.Request, process);
|
||||
|
||||
Reference in New Issue
Block a user