Compare commits
No commits in common. "4aded4cbd3f36b63190ef49f81198342753e0680" and "56a0882f0377b48288d43fd8aceffc01b78fc8b5" have entirely different histories.
4aded4cbd3
...
56a0882f03
@ -14,7 +14,6 @@ import (
|
||||
"fonchain-fiee/pkg/service"
|
||||
"fonchain-fiee/pkg/service/bundle/common"
|
||||
serverCast "fonchain-fiee/pkg/service/cast"
|
||||
"fonchain-fiee/pkg/utils/stime"
|
||||
"log"
|
||||
"math/rand"
|
||||
"strconv"
|
||||
@ -109,11 +108,9 @@ func RefreshScriptApprovalStatusTask() {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
for approvalID, v := range data {
|
||||
for _, v := range data {
|
||||
var scriptReq cast.UpdateScriptStatusReq
|
||||
scriptReq.ApprovalID = fmt.Sprint(approvalID)
|
||||
uTimes, _ := stime.DatetimeToTimes(v.UpdatedAt, "2006-01-02 15:04:05")
|
||||
if v.Status == 2 && int64(uTimes) <= time.Now().Unix() {
|
||||
if v.Status == 2 {
|
||||
scriptReq.WorkAction = cast.WorkActionENUM_APPROVAL_PASS
|
||||
}
|
||||
if v.Status == 3 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user