...
|
...
|
@@ -31,7 +31,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"})
|
|
|
_, svr.Users, err = UsersRepository.Find(map[string]interface{}{"phone": phone, "status": 1, "sortByCreateTime": "ASC", "deleteAtIsNull": true})
|
|
|
return nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -183,11 +183,6 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) { |
|
|
break
|
|
|
}
|
|
|
}
|
|
|
// 删除跳过
|
|
|
if user.DeleteAt.Unix() > 0 {
|
|
|
log.Debug("【检查权限】", svr.Phone, "【公司】", c.Id, user.Id, 0, "已删除,跳过")
|
|
|
continue
|
|
|
}
|
|
|
if user != nil {
|
|
|
if code, e := adminApiGateway.UserAuth(user.Id, constant.BUSINESS_ADMIN_PLATFORM_ID); e != nil || code != 0 {
|
|
|
log.Debug("【检查权限】", svr.Phone, "【公司】", c.Id, user.Id, code, e.Error())
|
...
|
...
|
|