Himall.Web/Areas/Mobile/Controllers/OrderController.cs
(开头部分) 26KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Himall.Core;
using Himall.IServices;
using Himall.Model;
using Himall.ServiceProvider;
using Himall.Web;
using Himall.Web.Areas.Mobile;
using Himall.Web.Areas.Mobile.Models;
using Himall.Web.Framework;
using Microsoft.CSharp.RuntimeBinder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Web;
using System.Web.Mvc;
namespace Himall.Web.Areas.Mobile.Controllers
{
public class OrderController : BaseMobileMemberController
{
public OrderController()
{
}
private void AddVshopBuyNumber(IEnumerable<long> orderIds)
{
IEnumerable<long> orders =
from item in ServiceHelper.Create<IOrderService>().GetOrders(orderIds)
select item.ShopId;
IVShopService vShopService = ServiceHelper.Create<IVShopService>();
IEnumerable<long> nums = orders.Select<long, long>((long item) => {
VShopInfo vShopByShopId = vShopService.GetVShopByShopId(item);
if (vShopByShopId != null)
{
return vShopByShopId.Id;
}
return 0;
}).Where((long item) => item > 0);
foreach (long num in nums)
{
vShopService.AddBuyNumber(num);
}
}
public ActionResult ChooseShippingAddress(string returnURL = "")
{
IQueryable<ShippingAddressInfo> userShippingAddressByUserId = ServiceHelper.Create<IShippingAddressService>().GetUserShippingAddressByUserId(base.CurrentUser.Id);
List<ShippingAddressInfo> shippingAddressInfos = new List<ShippingAddressInfo>();
foreach (ShippingAddressInfo shippingAddressInfo in userShippingAddressByUserId)
{
ShippingAddressInfo shippingAddressInfo1 = new ShippingAddressInfo()
{
Id = shippingAddressInfo.Id,
ShipTo = shippingAddressInfo.ShipTo,
Phone = shippingAddressInfo.Phone,
RegionFullName = shippingAddressInfo.RegionFullName,
Address = shippingAddressInfo.Address
};
shippingAddressInfos.Add(shippingAddressInfo1);
}
后面还有 649 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
