|
@@ -379,11 +379,11 @@ func (c *YiDongController) UserCheck() {
|
|
|
c.FailWithMessage("签名错误!")
|
|
|
return
|
|
|
}
|
|
|
- activityDetail, err := cygxActivity.GetAddActivityInfoById(activityIdYiDong)
|
|
|
- if err != nil {
|
|
|
- c.FailWithMessage("会议id异常:" + activityIdYiDong)
|
|
|
- return
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
var dateTxt = []byte(mobile)
|
|
|
resultDe := utils.DesBase64Decrypt(dateTxt)
|
|
|
deMobile := string(resultDe)
|
|
@@ -393,22 +393,35 @@ func (c *YiDongController) UserCheck() {
|
|
|
return
|
|
|
}
|
|
|
resp := new(yidong.CheckHaspermissionResp)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- companyPermissionName, err := company_product.GetCompanyPermissionByMobile(deMobile)
|
|
|
+ total, err := company_product.CheckUserAaiPerssionByMobile(deMobile)
|
|
|
if err != nil {
|
|
|
c.FailWithMessage("校验失败!" + err.Error())
|
|
|
return
|
|
|
}
|
|
|
- if companyPermissionName != "" {
|
|
|
- companyPermissionName += ",宏观"
|
|
|
- }
|
|
|
- if strings.Contains(companyPermissionName, activityDetail.ChartPermissionName) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if total > 0 {
|
|
|
resp.Haspermission = true
|
|
|
+ } else {
|
|
|
+ statusResp, err := servicesYidong.GetClptCrmWorkerRule(deMobile)
|
|
|
+ if err != nil {
|
|
|
+ c.FailWithMessage("校验失败!" + err.Error())
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if statusResp == 1 {
|
|
|
+ resp.Haspermission = true
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
itemApiLog := new(cygx_three_api_log.CygxThreeApiLog)
|