优化
This commit is contained in:
parent
a1a5d735d4
commit
c1bc68bc43
@ -14,8 +14,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
SIGN_NAME = "蹊径厦门科技"
|
||||
TEMPLATE_CODE = "SMS_489510110"
|
||||
SIGN_NAME = "阿里云短信测试"
|
||||
TEMPLATE_CODE = "SMS_154950909"
|
||||
)
|
||||
|
||||
// Description:
|
||||
|
||||
@ -35,5 +35,5 @@
|
||||
"KafkaHost":"kafka-server",
|
||||
"KafkaPort":"9092",
|
||||
"Version":"1.0.0",
|
||||
"IdVerify":false
|
||||
"IdVerify":true
|
||||
}
|
||||
|
||||
@ -578,6 +578,7 @@ func BackUserInfo(p *Player) {
|
||||
SetEmoji: p.PlayMod.getEmojiMod().GetEmojiSet(),
|
||||
Login: int32(BaseMod.GetLoginTime()),
|
||||
PetName: BaseMod.PetName,
|
||||
IdNum: BaseMod.IdCardNum,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -50,6 +50,7 @@ func (b *Base) InitData(Uid int) {
|
||||
if b.NickName == "" {
|
||||
b.NickName = fmt.Sprintf("Player_%d", Uid)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (b *Base) Login() {
|
||||
|
||||
@ -5128,6 +5128,7 @@ type UserInfo struct {
|
||||
PetName string `protobuf:"bytes,9,opt,name=PetName,proto3" json:"PetName,omitempty"` //宠物名字
|
||||
EmojiList []*EmojiInfo `protobuf:"bytes,10,rep,name=EmojiList,proto3" json:"EmojiList,omitempty"` // 表情列表
|
||||
SetEmoji map[int32]int32 `protobuf:"bytes,11,rep,name=SetEmoji,proto3" json:"SetEmoji,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` // 已设置的头像
|
||||
IdNum string `protobuf:"bytes,12,opt,name=IdNum,proto3" json:"IdNum,omitempty"` // 身份证号码
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -5239,6 +5240,13 @@ func (x *UserInfo) GetSetEmoji() map[int32]int32 {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UserInfo) GetIdNum() string {
|
||||
if x != nil {
|
||||
return x.IdNum
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 设置昵称
|
||||
type ReqSetName struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
@ -23698,7 +23706,7 @@ const file_proto_Gameapi_proto_rawDesc = "" +
|
||||
"\tEnergyBuy\x18\x03 \x01(\x05R\tEnergyBuy\x12\x1a\n" +
|
||||
"\bEnergyAD\x18\x04 \x01(\x05R\bEnergyAD\x12'\n" +
|
||||
"\x04Lang\x18\x05 \x01(\x0e2\x13.tutorial.LANG_TYPER\x04Lang\"\r\n" +
|
||||
"\vReqUserInfo\"\xca\x03\n" +
|
||||
"\vReqUserInfo\"\xe0\x03\n" +
|
||||
"\bUserInfo\x12\x10\n" +
|
||||
"\x03Uid\x18\x01 \x01(\x03R\x03Uid\x12\x1a\n" +
|
||||
"\bNickname\x18\x02 \x01(\tR\bNickname\x12\x16\n" +
|
||||
@ -23713,7 +23721,8 @@ const file_proto_Gameapi_proto_rawDesc = "" +
|
||||
"\aPetName\x18\t \x01(\tR\aPetName\x121\n" +
|
||||
"\tEmojiList\x18\n" +
|
||||
" \x03(\v2\x13.tutorial.EmojiInfoR\tEmojiList\x12<\n" +
|
||||
"\bSetEmoji\x18\v \x03(\v2 .tutorial.UserInfo.SetEmojiEntryR\bSetEmoji\x1a;\n" +
|
||||
"\bSetEmoji\x18\v \x03(\v2 .tutorial.UserInfo.SetEmojiEntryR\bSetEmoji\x12\x14\n" +
|
||||
"\x05IdNum\x18\f \x01(\tR\x05IdNum\x1a;\n" +
|
||||
"\rSetEmojiEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\x05R\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\x05R\x05value:\x028\x01\" \n" +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user