root 5 years ago
parent
commit
ed0fe84687
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/Http/Controllers/Passport/CommController.php

+ 1 - 2
app/Http/Controllers/Passport/CommController.php

@@ -50,8 +50,7 @@ class CommController extends Controller
             abort(500, '发送失败');
         }
 
-        Cache::put($redisKey, $code);
-        Redis::expire($redisKey, 600);
+        Cache::put($redisKey, $code, 10);
         return response([
             'data' => true
         ]);