Explorar o código

0107部分问题解决

shenzekai %!s(int64=2) %!d(string=hai) anos
pai
achega
51250fc848
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      pack/task_logistics_list.go
  2. 1 1
      service/autoTask.go

+ 1 - 1
pack/task_logistics_list.go

@@ -52,7 +52,7 @@ func GetTalentInfoStruct(TaskLogistics *http_model.TaskLogistics) *http_model.Ta
 	TalentPostAddrSnap := TaskLogistics.Talent.TalentPostAddrSnap
 	return &http_model.TaskLogisticsInfo{
 		TaskID:                TaskLogistics.Talent.TaskID,
-		PlatformNickname:      conv.MustString(gjson.Get(TalentPlatformInfoSnap, "PlatformInfo.platform_name")),
+		PlatformNickname:      conv.MustString(gjson.Get(TalentPlatformInfoSnap, "platform_nickname")),
 		FansCount:             conv.MustString(gjson.Get(TalentPlatformInfoSnap, "fans_count")),
 		StrategyID:            TaskLogistics.Talent.StrategyID,
 		DetailAddr:            conv.MustString(gjson.Get(TalentPostAddrSnap, "detail_addr")),

+ 1 - 1
service/autoTask.go

@@ -11,7 +11,7 @@ import (
 func AutoTask() error {
 	c := cron.New(cron.WithSeconds())
 	// spec := "0 */30 * * * ?" //cron表达式,每半小时执行一次
-	spec := "0 */10 * * * ?" //cron表达式,每1分钟一次
+	spec := "0 */1 * * * ?" //cron表达式,每1分钟一次
 	_, err1 := c.AddFunc(spec, AutoTaskUpdateStatus)
 	if err1 != nil {
 		log.Println("service [AutoTaskUpdateStatus] error:", err1)