|
@@ -1201,13 +1201,14 @@ func (this *UserController) ApplyTryOut() {
|
|
|
}
|
|
|
} else {
|
|
|
//获取销售信息
|
|
|
- sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 1)
|
|
|
- if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
+ //sellerItem, err := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 1)
|
|
|
+ ficcCount, err := models.GetCompanyProductCount(user.CompanyId, utils.COMPANY_PRODUCT_FICC_ID)
|
|
|
+ if err != nil {
|
|
|
br.Msg = "申请失败"
|
|
|
br.ErrMsg = "获取销售信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- if sellerItem != nil {
|
|
|
+ if ficcCount > 0 {
|
|
|
CompanyIdType = 3
|
|
|
applyMethod = "FICC客户"
|
|
|
} else {
|
|
@@ -1920,9 +1921,13 @@ func (this *UserController) ApplyDetail() {
|
|
|
}
|
|
|
switch detail.RegisterPlatform {
|
|
|
case 1:
|
|
|
- detail.ApplicationSource = "小程序"
|
|
|
+ detail.ApplicationSource = "查研观向小程序"
|
|
|
case 2:
|
|
|
- detail.ApplicationSource = "网页版"
|
|
|
+ detail.ApplicationSource = "查研观向网页版"
|
|
|
+ case 5:
|
|
|
+ detail.ApplicationSource = "买方研选小程序"
|
|
|
+ case 6:
|
|
|
+ detail.ApplicationSource = "买方研选网页版"
|
|
|
}
|
|
|
|
|
|
switch detail.InviteCompanySource {
|