作者 tangxvhui

更新时间

... ... @@ -21,8 +21,17 @@ func TestField(t *testing.T) {
func TestPushData(t *testing.T) {
nowTime := time.Unix(1688572800, 0)
err := SendDataStaffAssess(nowTime)
c := NewClient()
c.Host = "https://character-library-metadata-bastion.sumifcc.com"
c.AppKey = "7q9Kd8ktoB"
c.AppSecret = "pQSoBj44Wk"
entry := StaffAssessItem{}
data, err := entry.DataForAppend(nowTime)
if err != nil {
t.Logf("获取每日评估的数据 %s", err)
}
err = c.AppendData(data)
if err != nil {
t.Error(err)
t.Logf("获取每日评估的数据 %s", err)
}
}
... ...
... ... @@ -10,7 +10,7 @@ func PushData() {
//每天15:30点运行
nowTime := time.Now()
y, m, d := nowTime.Date()
t1 := time.Date(y, m, d, 16, 0, 0, 0, time.Local) //今天的15:30
t1 := time.Date(y, m, d, 16, 50, 0, 0, time.Local) //今天的15:30
interval := t1.Sub(nowTime)
if interval < 0 {
interval = (24 * time.Hour) + interval
... ...