|
@@ -4,6 +4,7 @@ import (
|
|
|
"encoding/json"
|
|
|
jinmencaijingReq "hongze/hongze_open_api/models/request/jinmencaijing"
|
|
|
"hongze/hongze_open_api/models/response/jinmencaijing"
|
|
|
+ "hongze/hongze_open_api/models/tables/company"
|
|
|
"hongze/hongze_open_api/models/tables/company_product"
|
|
|
"hongze/hongze_open_api/models/tables/company_report_permission"
|
|
|
cygxActivity "hongze/hongze_open_api/models/tables/cygx/cygx_activity"
|
|
@@ -251,6 +252,7 @@ func (c *JinMenCaiJingController) ActivityWhiteCheck() {
|
|
|
resp := new(jinmencaijing.CygxActivityWhiteCheckResp)
|
|
|
if userTotal == 0 {
|
|
|
c.OkDetailed(resp, "获取成功")
|
|
|
+ return
|
|
|
} else {
|
|
|
user, err = wx_user.GetByUserMobile(deMobile)
|
|
|
if err != nil {
|
|
@@ -258,6 +260,14 @@ func (c *JinMenCaiJingController) ActivityWhiteCheck() {
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ companyInfo, err := company.GetCompanyById(user.CompanyId)
|
|
|
+ if err != nil {
|
|
|
+ c.FailWithMessage("获取客户信息失败")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ resp.RealName = user.RealName
|
|
|
+ resp.Position = user.Position
|
|
|
+ resp.CompanyName = companyInfo.CompanyName
|
|
|
if activityInfo.LimitPeopleNum > 0 {
|
|
|
total, err := company_product.CheckUserAaiPerssionByMobile(deMobile)
|
|
|
if err != nil {
|
|
@@ -343,7 +353,7 @@ func (c *JinMenCaiJingController) ActivitySignupDetail() {
|
|
|
}
|
|
|
|
|
|
//func init() {
|
|
|
-// mobile := "15557271717"
|
|
|
+// mobile := "15557270777"
|
|
|
// encryptMobile := string(utils.DesBase64Encrypt([]byte(mobile)))
|
|
|
// fmt.Println(encryptMobile)
|
|
|
//}
|