|
@@ -6,6 +6,7 @@ import (
|
|
|
"app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
"app.yhyue.com/moapp/jybase/mongodb"
|
|
|
"leadGeneration/entity/mananger"
|
|
|
+ "leadGeneration/vars"
|
|
|
"log"
|
|
|
"time"
|
|
|
)
|
|
@@ -27,15 +28,16 @@ func (this *LeadGeneration) GetDate() {
|
|
|
keyWords := this.GetString("keyWords")
|
|
|
t, _ := this.GetInt("dType")
|
|
|
rData := map[string]interface{}{}
|
|
|
-
|
|
|
- if t != 0 || keyWords != "" {
|
|
|
- //获取超前项目
|
|
|
- if aheadData := mananger.JyAheadManager.GetData(userId, keyWords, isNewUser, t); aheadData != nil && len(aheadData) > 0 {
|
|
|
- rData["ahead"] = aheadData
|
|
|
- }
|
|
|
- //获取定制化报告数据
|
|
|
- if customData := mananger.JyCustomManager.GetData(userId, keyWords, isNewUser); customData != nil && len(customData) > 0 {
|
|
|
- rData["custom"] = customData
|
|
|
+ if vars.Config.IsEnable {
|
|
|
+ if t != 0 || keyWords != "" {
|
|
|
+ //获取超前项目
|
|
|
+ if aheadData := mananger.JyAheadManager.GetData(userId, keyWords, isNewUser, t); aheadData != nil && len(aheadData) > 0 {
|
|
|
+ rData["ahead"] = aheadData
|
|
|
+ }
|
|
|
+ //获取定制化报告数据
|
|
|
+ if customData := mananger.JyCustomManager.GetData(userId, keyWords, isNewUser); customData != nil && len(customData) > 0 {
|
|
|
+ rData["custom"] = customData
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return rData, nil
|