|
@@ -379,7 +379,7 @@ func (c *YiDongController) UserCheck() {
|
|
|
c.FailWithMessage("签名错误!")
|
|
|
return
|
|
|
}
|
|
|
- _, err = cygxActivity.GetAddActivityInfoById(activityIdYiDong)
|
|
|
+ activityDetail, err := cygxActivity.GetAddActivityInfoById(activityIdYiDong)
|
|
|
if err != nil {
|
|
|
c.FailWithMessage("会议id异常:" + activityIdYiDong)
|
|
|
return
|
|
@@ -393,12 +393,18 @@ func (c *YiDongController) UserCheck() {
|
|
|
return
|
|
|
}
|
|
|
resp := new(yidong.CheckHaspermissionResp)
|
|
|
- total, err := company_product.CheckUserAaiPerssionByMobile(deMobile)
|
|
|
+ //total, err := company_product.CheckUserAaiPerssionByMobile(deMobile)
|
|
|
+ //if err != nil {
|
|
|
+ // c.FailWithMessage("校验失败!" + err.Error())
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //获取所有的权限名称
|
|
|
+ companyPermissionName, err := company_product.GetCompanyPermissionByMobile(deMobile)
|
|
|
if err != nil {
|
|
|
c.FailWithMessage("校验失败!" + err.Error())
|
|
|
return
|
|
|
}
|
|
|
- if total > 0 {
|
|
|
+ if strings.Contains(companyPermissionName, activityDetail.ChartPermissionName) {
|
|
|
resp.Haspermission = true
|
|
|
}
|
|
|
//添加请求日志记录
|