Explorar o código

OwnerService 缓存修改

ajun %!s(int64=5) %!d(string=hai) anos
pai
achega
5778438933
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/OwnerService.php

+ 1 - 1
app/Services/OwnerService.php

@@ -229,7 +229,7 @@ Class OwnerService
     }
     }
 
 
     public function getOwnerByCode($code){
     public function getOwnerByCode($code){
-        return Cache::remember("getOwnerByCode_{$code}", config('database.cache.expirations.owners'), function ()use($code){
+        return Cache::remember("getOwnerByCode_{$code}", config('cache.expirations.owners'), function ()use($code){
             $owner = Owner::query()->where('code',$code)->first();
             $owner = Owner::query()->where('code',$code)->first();
             if($owner) return $owner;
             if($owner) return $owner;
             $basCustomer = app('OracleBasCustomerService')->first(['Customer_Type'=>'OW','CustomerID'=>$code]);
             $basCustomer = app('OracleBasCustomerService')->first(['Customer_Type'=>'OW','CustomerID'=>$code]);