|
@@ -1138,22 +1138,22 @@ func (this *ReportController) IsShow() {
|
|
|
}
|
|
|
var resp models.IsShow
|
|
|
|
|
|
- //resp.IsShowChart = true
|
|
|
- //resp.IsShowResearch = true
|
|
|
- //resp.IsShowList = true
|
|
|
- //mobile := user.Mobile
|
|
|
- //if mobile == "" {
|
|
|
- // br.Ret = 200
|
|
|
- // br.Success = true
|
|
|
- // br.Data = resp
|
|
|
- // return
|
|
|
- //}
|
|
|
- //total, _ := models.GetUserIsAdminCount(mobile)
|
|
|
- //if total > 0 {
|
|
|
- // resp.IsShow = true
|
|
|
- //}
|
|
|
- //resp.LinkWxExplain = utils.LINK_WX_EXPLAIN
|
|
|
- //resp.YanXuan_Explain = true
|
|
|
+ resp.IsShowChart = true
|
|
|
+ resp.IsShowResearch = true
|
|
|
+ resp.IsShowList = true
|
|
|
+ mobile := user.Mobile
|
|
|
+ if mobile == "" {
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Data = resp
|
|
|
+ return
|
|
|
+ }
|
|
|
+ total, _ := models.GetUserIsAdminCount(mobile)
|
|
|
+ if total > 0 {
|
|
|
+ resp.IsShow = true
|
|
|
+ }
|
|
|
+ resp.LinkWxExplain = utils.LINK_WX_EXPLAIN
|
|
|
+ resp.YanXuan_Explain = true
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Data = resp
|