Hidistro.Entities/Orders/OrderInfo.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.Entities.Orders
{
using Hidistro.Entities.Promotions;
using Hishop.Components.Validation.Validators;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
public class OrderInfo
{
private Dictionary<string, LineItemInfo> lineItems;
public static event EventHandler<EventArgs> Closed;
public static event EventHandler<EventArgs> Created;
public static event EventHandler<EventArgs> Deliver;
public static event EventHandler<EventArgs> Payment;
public static event EventHandler<EventArgs> Refund;
public OrderInfo()
{
this.OrderStatus = Hidistro.Entities.Orders.OrderStatus.WaitBuyerPay;
this.RefundStatus = Hidistro.Entities.Orders.RefundStatus.None;
}
public bool CheckAction(OrderActions action)
{
if ((this.OrderStatus != Hidistro.Entities.Orders.OrderStatus.Finished) && (this.OrderStatus != Hidistro.Entities.Orders.OrderStatus.Closed))
{
switch (action)
{
case OrderActions.BUYER_PAY:
case OrderActions.SUBSITE_SELLER_MODIFY_DELIVER_ADDRESS:
case OrderActions.SUBSITE_SELLER_MODIFY_PAYMENT_MODE:
case OrderActions.SUBSITE_SELLER_MODIFY_SHIPPING_MODE:
case OrderActions.SELLER_CONFIRM_PAY:
case OrderActions.SELLER_MODIFY_TRADE:
case OrderActions.SELLER_CLOSE:
case OrderActions.SUBSITE_SELLER_MODIFY_GIFTS:
return (this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.WaitBuyerPay);
case OrderActions.BUYER_CONFIRM_GOODS:
case OrderActions.SELLER_FINISH_TRADE:
return (this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.SellerAlreadySent);
case OrderActions.SELLER_SEND_GOODS:
return ((this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.BuyerAlreadyPaid) || ((this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.WaitBuyerPay) && (this.Gateway == "hishop.plugins.payment.podrequest")));
case OrderActions.SELLER_REJECT_REFUND:
return ((this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.BuyerAlreadyPaid) || (this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.SellerAlreadySent));
case OrderActions.MASTER_SELLER_MODIFY_DELIVER_ADDRESS:
case OrderActions.MASTER_SELLER_MODIFY_PAYMENT_MODE:
case OrderActions.MASTER_SELLER_MODIFY_SHIPPING_MODE:
case OrderActions.MASTER_SELLER_MODIFY_GIFTS:
return ((this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.WaitBuyerPay) || (this.OrderStatus == Hidistro.Entities.Orders.OrderStatus.BuyerAlreadyPaid));
后面还有 480 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
