This commit is contained in:
苏尹岚
2021-03-10 15:46:52 +08:00
parent 176d39b7ed
commit 154a938979
2 changed files with 7 additions and 7 deletions

View File

@@ -4002,10 +4002,10 @@ func RefreshMTWMToken(ctx *jxcontext.Context) (err error) {
var (
db = dao.GetDB()
)
if time.Now().YearDay()%20 != 0 {
if time.Now().YearDay()%10 != 0 {
return
}
//token是1个月过期20天刷一次吧
//token是1个月过期10天刷一次吧
storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDMTWM}, nil, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "", globals.Mtwm2Code)
for _, v := range storeMaps {
if v.MtwmRefreshToken != "" {