Compare commits
48 Commits
2c6ea1c7e2
...
2749862be9
Author | SHA1 | Date |
---|---|---|
|
2749862be9 | |
|
19ebda3832 | |
|
4581f41fb8 | |
|
12c38f535b | |
|
96f87f8b62 | |
|
2b0f7b1e28 | |
|
0e84e74049 | |
|
79915a49e1 | |
|
8aa5fd7c56 | |
|
e636afc4aa | |
|
46081a862a | |
|
cca29b64c6 | |
|
e1f5447da0 | |
|
2629c16689 | |
|
3da6a1a667 | |
|
ca5d442874 | |
|
90b8b5c113 | |
|
fc0321afdc | |
|
8865dc49da | |
|
e0640c7fd5 | |
|
ec0d5b3f94 | |
|
09c8a1dd40 | |
|
d1276464b5 | |
|
48ccfebe34 | |
|
c5610f58dc | |
|
15014b54bb | |
|
00f0ecd750 | |
|
1b2b3fdc5d | |
|
c14c15e18b | |
|
e419902ac1 | |
|
4ce799b314 | |
|
50da2721fb | |
|
7d92e5a94c | |
|
6442841899 | |
|
0bff759477 | |
|
3796a77bbb | |
|
ab481509e5 | |
|
840e8f5973 | |
|
d6419d973b | |
|
d8825c650d | |
|
b6b7ff4035 | |
|
bcc677ed87 | |
|
c5886c22b0 | |
|
1253ba8cc4 | |
|
4118164692 | |
|
8391b159ea | |
|
8f24ca5592 | |
|
515de3a987 |
|
@ -970,6 +970,10 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
|
|||
playerEx.robotGameTimes--
|
||||
sceneEx.robotGamingNum++
|
||||
}
|
||||
if _, ok := sceneEx.BilledList[playerEx.SnId]; !ok {
|
||||
arr := make([]*BilledInfo, 0)
|
||||
sceneEx.BilledList[playerEx.SnId] = &arr
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1123,7 +1123,7 @@ type SCCLAWDOLLConfig struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Info []*MachineInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
|
||||
Info []*MachineInfo `protobuf:"bytes,1,rep,name=Info,proto3" json:"Info,omitempty"`
|
||||
}
|
||||
|
||||
func (x *SCCLAWDOLLConfig) Reset() {
|
||||
|
@ -1356,9 +1356,9 @@ var file_clawdoll_proto_rawDesc = []byte{
|
|||
0x28, 0x05, 0x52, 0x04, 0x53, 0x74, 0x61, 0x74, 0x22, 0x12, 0x0a, 0x10, 0x43, 0x53, 0x43, 0x4c,
|
||||
0x41, 0x57, 0x44, 0x4f, 0x4c, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x3d, 0x0a, 0x10,
|
||||
0x53, 0x43, 0x43, 0x4c, 0x41, 0x57, 0x44, 0x4f, 0x4c, 0x4c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
||||
0x12, 0x29, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15,
|
||||
0x12, 0x29, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15,
|
||||
0x2e, 0x63, 0x6c, 0x61, 0x77, 0x64, 0x6f, 0x6c, 0x6c, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e,
|
||||
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x9b, 0x01, 0x0a, 0x0b,
|
||||
0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x9b, 0x01, 0x0a, 0x0b,
|
||||
0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x49,
|
||||
0x63, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x49,
|
||||
0x63, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x6f, 0x73, 0x74, 0x49,
|
||||
|
@ -1447,7 +1447,7 @@ var file_clawdoll_proto_depIdxs = []int32{
|
|||
1, // 1: clawdoll.SCCLAWDOLLOp.OpRetCode:type_name -> clawdoll.OpResultCode
|
||||
14, // 2: clawdoll.SCCLAWDOLLPlayerEnter.Data:type_name -> clawdoll.CLAWDOLLPlayerDigestInfo
|
||||
14, // 3: clawdoll.CLAWDOLLWaitPlayers.WaitPlayersInfo:type_name -> clawdoll.CLAWDOLLPlayerDigestInfo
|
||||
17, // 4: clawdoll.SCCLAWDOLLConfig.info:type_name -> clawdoll.MachineInfo
|
||||
17, // 4: clawdoll.SCCLAWDOLLConfig.Info:type_name -> clawdoll.MachineInfo
|
||||
5, // [5:5] is the sub-list for method output_type
|
||||
5, // [5:5] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
|
|
|
@ -137,7 +137,7 @@ message CLAWDOLLPlayerDigestInfo {
|
|||
message CSCLAWDOLLConfig{
|
||||
}
|
||||
message SCCLAWDOLLConfig{
|
||||
repeated MachineInfo info =1;
|
||||
repeated MachineInfo Info =1;
|
||||
}
|
||||
message MachineInfo{
|
||||
string IconAddr =1; //图片地址
|
||||
|
|
|
@ -2663,8 +2663,8 @@ func CSBindTel(s *netlib.Session, packetId int, data interface{}, sid int64) err
|
|||
SaveInviteScore(&model.InviteScore{
|
||||
Platform: p.Platform,
|
||||
SnId: p.SnId,
|
||||
InviteSnId: p.InviterId,
|
||||
Tp: common.InviteScoreTypeBind,
|
||||
InviteSnId: p.PSnId,
|
||||
Tp: common.InviteScoreTypeBindTel,
|
||||
Score: cfg.GetBindTelScore(),
|
||||
Ts: time.Now().Unix(),
|
||||
Money: 0,
|
||||
|
|
|
@ -192,7 +192,7 @@ func init() {
|
|||
netlib.RegisterHandler(int(serverproto.SSPacketID_PACKET_GW_AUDIENCELEAVE), netlib.HandlerWrapper(func(s *netlib.Session, packetid int, pack interface{}) error {
|
||||
logger.Logger.Trace("receive PACKET_GW_AUDIENCELEAVE GWPlayerLeave:", pack)
|
||||
if msg, ok := pack.(*serverproto.GWPlayerLeave); ok {
|
||||
scene := SceneMgrSingleton.GetScene(int(msg.GetRoomId()))
|
||||
scene := SceneMgrSingleton.GetScene(int(msg.GetRoomId()), true)
|
||||
if scene != nil {
|
||||
p := PlayerMgrSington.GetPlayerBySnId(msg.GetPlayerId())
|
||||
if p != nil {
|
||||
|
|
|
@ -459,6 +459,17 @@ func CSBindInvite(s *netlib.Session, packetid int, data interface{}, sid int64)
|
|||
Ts: now.Unix(),
|
||||
Money: 0,
|
||||
})
|
||||
if len(p.Tel) > 0 {
|
||||
SaveInviteScore(&model.InviteScore{
|
||||
Platform: p.Platform,
|
||||
SnId: p.SnId,
|
||||
InviteSnId: inviteSnId,
|
||||
Tp: common.InviteScoreTypeBindTel,
|
||||
Score: cfg.GetBindTelScore(),
|
||||
Ts: time.Now().Unix(),
|
||||
Money: 0,
|
||||
})
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) {
|
||||
|
|
|
@ -84,7 +84,7 @@ func (p *PlayerNotify) SendToClient(tp common.NotifyType, packetId int, pack int
|
|||
if len(d.GetDatas()) == 0 {
|
||||
return
|
||||
}
|
||||
scene := SceneMgrSingleton.GetScene(int(d.GetDatas()[0].GetRoomId()))
|
||||
scene := SceneMgrSingleton.GetScene(int(d.GetDatas()[0].GetRoomId()), true)
|
||||
if scene == nil {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue