|
@@ -307,7 +307,17 @@ func (this *ChartController) ChartInfoDetail() {
|
|
|
// @router /refresh [get]
|
|
|
func (this *ChartController) ChartInfoRefresh() {
|
|
|
br := new(models.BaseResponse).Init()
|
|
|
+ chartId :=0
|
|
|
defer func() {
|
|
|
+ // 添加日志
|
|
|
+ if chartId>0{
|
|
|
+ shareChartRefreshLogInfo := &models.ShareChartRefreshLog{
|
|
|
+ Ip: this.Ctx.Input.IP(),
|
|
|
+ ChartId: chartId,
|
|
|
+ CreateTime: time.Now(),
|
|
|
+ }
|
|
|
+ models.AddShareChartRefreshLog(shareChartRefreshLogInfo)
|
|
|
+ }
|
|
|
this.Data["json"] = br
|
|
|
this.ServeJSON()
|
|
|
}()
|
|
@@ -329,6 +339,7 @@ func (this *ChartController) ChartInfoRefresh() {
|
|
|
br.ErrMsg = "获取图表信息失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ chartId = chartInfo.ChartInfoId
|
|
|
|
|
|
//err = data.ChartInfoRefresh(chartInfo.ChartInfoId)
|
|
|
//if err != nil {
|