价格方案优化
This commit is contained in:
@@ -90,7 +90,7 @@ namespace Home.Controllers
|
||||
var user_Info = await m_UserService.GetById(userInfo.UserId);
|
||||
var ProductAccountCount = user_Info.ProductAccountCount;
|
||||
|
||||
if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){
|
||||
if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){
|
||||
//根据折扣设置价格
|
||||
|
||||
var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id);
|
||||
@@ -740,7 +740,7 @@ namespace Home.Controllers
|
||||
var ProductAccountCount = user_Info.ProductAccountCount;
|
||||
|
||||
var dis_price = 1000000M;
|
||||
if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){
|
||||
if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){
|
||||
//根据折扣设置价格
|
||||
var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id);
|
||||
if (discount != null)
|
||||
@@ -808,7 +808,7 @@ namespace Home.Controllers
|
||||
//从user表获取用户信息
|
||||
var user_Info = await m_UserService.GetById(userInfo.UserId);
|
||||
|
||||
if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){
|
||||
if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){
|
||||
//根据折扣设置价格
|
||||
|
||||
var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id);
|
||||
@@ -872,7 +872,7 @@ namespace Home.Controllers
|
||||
|
||||
var user_Info = await m_UserService.GetById(userId);
|
||||
var dis_price = 1000000M;
|
||||
if(user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)){
|
||||
if((user_Info.agent_id == 0||(user_Info.agent_id != 0 && user_Info.discount_id != 0)) && user_Info.discount_id >= 0){
|
||||
//根据折扣设置价格
|
||||
var discount = await m_ProductPriceSchemeService.GetById(user_Info.discount_id);
|
||||
if (discount != null)
|
||||
|
||||
Reference in New Issue
Block a user