Browse Source

修改BUG

zhou.xiaoning 4 years ago
parent
commit
eff69bb725
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/ermcpUser.go

+ 1 - 1
models/ermcpUser.go

@@ -117,7 +117,7 @@ func (r *ErmcpUserModel) DecryptField(decryptAddress bool) {
 	r.MOBILE = fd(r.MOBILE)
 	r.TELPHONE = fd(r.TELPHONE)
 
-	if decryptAddress {
+	if decryptAddress && len(r.ADDRESS) != 0 { // 地址不为空
 		r.ADDRESS = fd(r.ADDRESS)
 	}
 }