xiaogang 4 năm trước cách đây
mục cha
commit
a35f33491d
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      app/Http/Controllers/Api/HomeController.php

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

xqd
@@ -187,9 +187,8 @@ class HomeController extends Controller
             dd(Cache::get(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url)));
             if ($lock->get()) {
                 if(!$user){
-                    if(!Cache::get(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url))){
+                    if(!Cache::has(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url))){
                         Cache::put(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url),$request->url,'86400');
-                        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()){