mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-02 07:25:26 +08:00
14 lines
249 B
Go
14 lines
249 B
Go
package config
|
|
|
|
import "strings"
|
|
|
|
func (a Account) Identifier() string {
|
|
if strings.TrimSpace(a.Email) != "" {
|
|
return strings.TrimSpace(a.Email)
|
|
}
|
|
if mobile := NormalizeMobileForStorage(a.Mobile); mobile != "" {
|
|
return mobile
|
|
}
|
|
return ""
|
|
}
|