22 lines
653 B
C#
Executable File
22 lines
653 B
C#
Executable File
using System;
|
|
|
|
namespace ET
|
|
{
|
|
[ActorMessageHandler]
|
|
public class C2M_BuyInConsignmentHandler : AMActorLocationRpcHandler<Unit, C2M_BuyInConsignment, M2C_BuyInConsignment>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_BuyInConsignment request, M2C_BuyInConsignment response, Action reply)
|
|
{
|
|
string ret =await ConsignmentComponent.Instance.BuyInConsignment(unit, request.ConsignmentId,request.Pwd);
|
|
if (!ret.Equals(string.Empty))
|
|
{
|
|
response.Message = ret;
|
|
reply();
|
|
return;
|
|
}
|
|
BagHelper.GetBagInfo(unit, response.BagMapList);
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |