Commit 3ce585dd authored by hujiebin's avatar hujiebin

svip升级

parent 5d2545c1
......@@ -408,4 +408,5 @@ message CpUpgrade {
message SvipUpgrade {
User user = 1;
uint32 svip_level = 2;
string group_id = 3;
}
\ No newline at end of file
......@@ -361,10 +361,11 @@ func SendCpUpgrade(nick1, nick2, avatar1, avatar2 string, cpLevel uint32, groupI
}
// svip升级
func SendSvipUpgrade(nick, avatar string, svipLevel uint32) error {
func SendSvipUpgrade(nick, avatar string, svipLevel uint32, txGroupId string) error {
msg := &userProxy.SvipUpgrade{
User: &userProxy.User{Nick: nick, Avatar: avatar},
SvipLevel: svipLevel,
GroupId: txGroupId,
}
if buffer, err := proto.Marshal(msg); err == nil {
rspUids, err := broadcast(MsgTypeSvipUpgrade, buffer)
......
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