|
@@ -58,9 +58,16 @@ func (this *ChartController) Collection() {
|
|
|
return
|
|
|
}
|
|
|
mobile := user.Mobile
|
|
|
+ resp := new(models.HomeChartListItem)
|
|
|
if mobile == "" {
|
|
|
- br.Msg = "请绑定手机号!"
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "获取成功"
|
|
|
+ br.Data = resp
|
|
|
+ resp.IsBindingMobile = false
|
|
|
return
|
|
|
+ } else {
|
|
|
+ resp.IsBindingMobile = true
|
|
|
}
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
@@ -78,7 +85,6 @@ func (this *ChartController) Collection() {
|
|
|
return
|
|
|
}
|
|
|
page := paging.GetPaging(currentIndex, pageSize, total)
|
|
|
- resp := new(models.HomeChartListItem)
|
|
|
resp.List = list
|
|
|
resp.Paging = page
|
|
|
br.Ret = 200
|