@@ -259,9 +259,7 @@ func (this *Role) reportCreateRoleToXiaoQi(accRole *serverproto.AccountRole) {
cfg := service.GetServiceConfig()
zoneID := 0
- if cfg != nil {
- zoneID = cfg.Node.Zone
- }
+ zoneID = cfg.Node.Zone
if this.GetSelectZone() > 0 {
zoneID = int(this.GetSelectZone())
}