Commit d2526a18 authored by hujiebin's avatar hujiebin

钻石变化新的通知

parent a0eb0a20
......@@ -355,6 +355,7 @@ message RoomInviteMember {
/* id == 145 钻石变化 */
message DiamondChange {
uint32 remainDiamond = 1;
uint32 remainPinkDiamond = 2;
}
/* id == 146 游戏横幅 */
......
......@@ -68,9 +68,10 @@ func SendGlobalRocketNotice(groupId string, period string, round uint32, stage u
}
// 发送钻石变化通知
func SendDiamondChange(userId uint64, diamond uint32) error {
func SendDiamondChange(userId uint64, diamond, pinkDiamond uint32) error {
msg := &userProxy.DiamondChange{
RemainDiamond: diamond,
RemainDiamond: diamond,
RemainPinkDiamond: pinkDiamond,
}
if buffer, err := proto.Marshal(msg); err == nil {
rspUids, err := multicast([]uint64{userId}, MsgDiamondChange, buffer)
......
......@@ -10,6 +10,6 @@ func TestTestCommon(t *testing.T) {
}
func TestJwt(t *testing.T) {
token, _ := jwt.GenerateToken(4549, "f98c7fe5698e447c998615332eb660d1", "hiloApi")
token, _ := jwt.GenerateToken(7619, "f2ab93523f2a4f94825d544a67607290", "hiloApi")
t.Logf(token)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment