|
@@ -2,11 +2,11 @@ package services
|
|
|
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
- "fmt"
|
|
|
- "github.com/rdlucklib/rdluck_tools/http"
|
|
|
"eta/eta_api/models"
|
|
|
"eta/eta_api/services/alarm_msg"
|
|
|
"eta/eta_api/utils"
|
|
|
+ "fmt"
|
|
|
+ "github.com/rdlucklib/rdluck_tools/http"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -165,7 +165,7 @@ func getOriginPolicyReportList() (list []EnPolicyReportDataListItem, err error)
|
|
|
mode := "all"
|
|
|
startDt := ""
|
|
|
// 获取当天的报告
|
|
|
- startDt = time.Now().Format(utils.FormatDate)
|
|
|
+ startDt = time.Now().AddDate(0, 0, -7).Format(utils.FormatDate)
|
|
|
//设置接口地址
|
|
|
//处理返回值
|
|
|
url := utils.EnPolicyReportUrl + `articles/index?type_id=%d&field_id=%d&take=%d&skip=%d&publish_status=%s&mode=%s&start_dt=%s`
|