xiaogang 4 yıl önce
ebeveyn
işleme
b0083bd784
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      app/Http/Controllers/Api/HomeController.php

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

xqd
@@ -184,11 +184,12 @@ class HomeController extends Controller
             $cache_eq_id = $request->header('uniqueID','');//获取设备码
             $lock = Cache::lock(ApiEnum::PHOTO_DESTROY_LOCK.$cache_eq_id, 1);
 
-            dd(Cache::get(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url)));
+            //dd(Cache::get(ApiEnum::PHOTO_DESTROY_URL.$cache_eq_id.md5($request->url)));
             if ($lock->get()) {
                 if(!$user){
                     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()){