xiaogang 4 년 전
부모
커밋
8162523ffe
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/Http/Controllers/Api/HomeController.php

+ 2 - 1
app/Http/Controllers/Api/HomeController.php

xqd
@@ -185,9 +185,10 @@ class HomeController extends Controller
 
             if ($lock->get()) {
                 if(!$user){
-                    dd(Cache::has(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url)));
+                    //dd(Cache::has(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url)));
                     if(!Cache::has(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url))){
                         Cache::forever(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url),$request->url);
+                        dd(Cache::get(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url)));
                     }
                 }else{
                     if(!UserPhotoDestroy::query()->where(['user_id'=>$user->id,'url'=>$request->url])->first()){