...
|
...
|
@@ -34,7 +34,7 @@ func (svr *PgLoginService) Init(phone string) (err error) { |
|
|
)
|
|
|
svr.Phone = phone
|
|
|
_, svr.PartnerInfo, err = PartnerInfoService.Find(map[string]interface{}{"account": phone, "status": 1, "sortByCreateTime": "ASC"})
|
|
|
_, svr.Users, err = UsersRepository.Find(map[string]interface{}{"phone": phone, "status": 1, "sortByCreateTime": "ASC", "deleteAtIsNull": true})
|
|
|
_, svr.Users, err = UsersRepository.Find(map[string]interface{}{"phone": phone, "status": 1, "sortByCreateTime": "ASC", "deleteAtIsNull": true, "isSenior": 1})
|
|
|
return nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -291,7 +291,7 @@ func (svr *PgLoginService) RegistryGuest(phone string) error { |
|
|
UsersRepository, _ = repository.NewUsersRepository(svr.transactionContext)
|
|
|
)
|
|
|
partnerInfo, errPartner := PartnerInfoService.FindOne(map[string]interface{}{"account": phone})
|
|
|
user, errUser := UsersRepository.FindOne(map[string]interface{}{"phone": phone})
|
|
|
user, errUser := UsersRepository.FindOne(map[string]interface{}{"phone": phone, "isSenior": 1})
|
|
|
if partnerInfo != nil || user != nil {
|
|
|
return nil
|
|
|
}
|
...
|
...
|
|