|
@@ -86,14 +86,7 @@ func CheckUserReportPermission(user *models.WxUserItem, productId int, report *m
|
|
|
checkInfo.Type = "apply"
|
|
|
}else {
|
|
|
checkInfo.Type = "contact"
|
|
|
- customerInfo := models.CustomerInfoResp{
|
|
|
- CompanyName: company.CompanyName,
|
|
|
- Status: company.Status,
|
|
|
- Name: user.RealName,
|
|
|
- IsSuspend: int8(company.IsSuspend),
|
|
|
- Mobile: user.Mobile,
|
|
|
- }
|
|
|
- checkInfo.CustomerInfo = customerInfo
|
|
|
+ checkInfo.Status = company.Status
|
|
|
|
|
|
if company.Status == utils.COMPANY_STATUS_LOSE {
|
|
|
status = 2
|
|
@@ -105,7 +98,10 @@ func CheckUserReportPermission(user *models.WxUserItem, productId int, report *m
|
|
|
}else if company.IsSuspend > 0 && company.Status == "试用" {
|
|
|
status = 2
|
|
|
msg = "您还未开通权限,如有需要请联系对口销售"
|
|
|
+ checkInfo.Status = "暂停试用"
|
|
|
}
|
|
|
+ checkInfo.CompanyName = company.CompanyName
|
|
|
+ checkInfo.RealName = user.RealName
|
|
|
|
|
|
if company.SellerId > 0 {
|
|
|
adminInfo, tmpErr := models.GetAdminByAdminId(company.SellerId)
|
|
@@ -205,7 +201,7 @@ func CheckUserReportPermission(user *models.WxUserItem, productId int, report *m
|
|
|
}
|
|
|
|
|
|
if record != nil {
|
|
|
- checkInfo.CustomerInfo.HasApply = true
|
|
|
+ checkInfo.HasApply = true
|
|
|
}
|
|
|
}
|
|
|
return
|