Kaynağa Gözat

社媒对接

moshaorui 1 gün önce
ebeveyn
işleme
f937b9e403
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/Console/Commands/TimerSsmPost.php

+ 1 - 1
app/Console/Commands/TimerSsmPost.php

@@ -126,7 +126,7 @@ class TimerSsmPost extends Command
             try {
                 $expiresAt = Carbon::parse($account->expires_at);
                 //少于10分钟就开始刷新access_token
-                if ($expiresAt->diffInSeconds(Carbon::now()) <= 6000) {
+                if ($expiresAt->diffInSeconds(Carbon::now()) <= 600) {
                     Log::info('开始刷新access_token:'. $account->name);
                     $mediaName = $account->getParent->name;
                     $configData = ['accountInfo' => $account->toArray()];