Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop
This commit is contained in:
@@ -4430,7 +4430,7 @@ func RefreshTiktokShopToken(ctx *jxcontext.Context) (err error) {
|
||||
globals.SugarLogger.Debugf("定时任务更新抖店店铺token错误:%s,%s", utils.Format4Output(v, false), err.Error())
|
||||
continue
|
||||
}
|
||||
if access.ExpiresIn-time.Now().Unix() > 48*60*60 {
|
||||
if access.ExpiresIn-time.Now().Unix() > 60*60 {
|
||||
continue
|
||||
}
|
||||
api.SetToken(access.AccessToken)
|
||||
@@ -4441,7 +4441,7 @@ func RefreshTiktokShopToken(ctx *jxcontext.Context) (err error) {
|
||||
token, _ := json.Marshal(result)
|
||||
v.Token = string(token)
|
||||
v.UpdatedAt = time.Now()
|
||||
v.Comment = utils.Time2Str(time.Now())[0:11] + ":" + v.Token[0:230]
|
||||
v.StoreBrandName = "定时任务更新"
|
||||
dao.UpdateEntity(db, v, "Token", "UpdatedAt", "Comment")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user