public int GetRedPacket(long userid, int areaId) { _client = new PuzzleEventService.PuzzleEventServiceClient(); try { int rs = _client.GetRedPacket(userid, areaId); _client.Close(); return(rs); } catch (Exception ex) { _client.CloseCatch(ex, "GetRedPacket 领取红包失败"); return(0); } }