초기커밋
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
|
||||
namespace GameServer;
|
||||
|
||||
public class ConfirmNewReceivedFriendRequestInterlockAction : FriendInterlockBase
|
||||
{
|
||||
public ConfirmNewReceivedFriendRequestInterlockAction(UserBase owner, string myGuid, string friendGuid) : base(owner, myGuid, friendGuid)
|
||||
{
|
||||
|
||||
}
|
||||
public override async Task<Result> doAction()
|
||||
{
|
||||
var server_logic = GameServerApp.getServerLogic();
|
||||
var owner = getOwner();
|
||||
|
||||
FriendReqCacheRequest friend_req_cache = new FriendReqCacheRequest(owner, getMyGuid(), getFriendGuid(), server_logic.getRedisConnector());
|
||||
|
||||
var result = await friend_req_cache.confirmReceivedFriendRequest();
|
||||
if(result.isFail())
|
||||
{
|
||||
Log.getLogger().error($"confirmReceivedFriendRequest error getMyGuid() : {getMyGuid()}, getFriendGuid() : {getFriendGuid()}");
|
||||
return result;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user