dyjh 6 years ago
parent
commit
afc4d9da5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

+ 1 - 1
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -1787,7 +1787,7 @@ class AlbumController extends Controller
        // Cache::flush();
         $value = Cache::get($g_open_id);
         \Log::info($value);\Log::info('2225');
-        if ($g_open_id && !$value) {
+        if ($g_open_id && (!$value || ($value + 60) <= time())) {
             Cache::add($g_open_id, time(), 1);
             $config = [
                 'app_id' => $weChatApp->G_app_id,