|
@@ -588,7 +588,7 @@ func LoginAuthBySecretKey(secretKey string) (protocol.LoginAuthToken, error) { |
|
@@ -588,7 +588,7 @@ func LoginAuthBySecretKey(secretKey string) (protocol.LoginAuthToken, error) { |
588
|
}
|
588
|
}
|
589
|
userdata, err = models.GetUserByPhone(uclientReturn.Data.Phone)
|
589
|
userdata, err = models.GetUserByPhone(uclientReturn.Data.Phone)
|
590
|
if err != nil {
|
590
|
if err != nil {
|
591
|
- log.Debug("GetUserByUCenter(%d) err:%s", uclientReturn.Data.Id, err)
|
591
|
+ log.Debug("GetUserByPhone(%d) err:%s", uclientReturn.Data.Phone, err)
|
592
|
return logintoken, protocol.NewErrWithMessage("10021")
|
592
|
return logintoken, protocol.NewErrWithMessage("10021")
|
593
|
}
|
593
|
}
|
594
|
companyData, err = models.GetCompanyByUCenter(uclientReturn.Data.CompanyId)
|
594
|
companyData, err = models.GetCompanyByUCenter(uclientReturn.Data.CompanyId)
|
|
@@ -596,6 +596,10 @@ func LoginAuthBySecretKey(secretKey string) (protocol.LoginAuthToken, error) { |
|
@@ -596,6 +596,10 @@ func LoginAuthBySecretKey(secretKey string) (protocol.LoginAuthToken, error) { |
596
|
log.Error("获取company数据失败:%s", err)
|
596
|
log.Error("获取company数据失败:%s", err)
|
597
|
return logintoken, protocol.NewErrWithMessage("10111")
|
597
|
return logintoken, protocol.NewErrWithMessage("10111")
|
598
|
}
|
598
|
}
|
|
|
599
|
+ if companyData.Enable == models.COMPANY_ENABLE_NO {
|
|
|
600
|
+ log.Error("公司未启用机会模块")
|
|
|
601
|
+ return logintoken, protocol.NewErrWithMessage("10124")
|
|
|
602
|
+ }
|
599
|
ucompany, err := models.GetUserCompanyBy(userdata.Id, companyData.Id)
|
603
|
ucompany, err := models.GetUserCompanyBy(userdata.Id, companyData.Id)
|
600
|
if err != nil {
|
604
|
if err != nil {
|
601
|
log.Error("获取user_company失败;%s", err)
|
605
|
log.Error("获取user_company失败;%s", err)
|