Procházet zdrojové kódy

Weenier 168otc项目部署 0630

wesmiler před 3 roky
rodič
revize
c29ff537df
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/Services/Common/CoinLogService.php

+ 2 - 2
app/Services/Common/CoinLogService.php

@@ -109,14 +109,14 @@ class CoinLogService extends BaseService
      * @param string $pk
      * @return mixed
      */
-    public function checkExists($field, $value, $pk = 'id')
+    public function checkExists($field, $value, $pk = 'id', $status=0)
     {
         $cacheKey = "caches:coinLogs:exists:{$field}_{$value}";
         if($result = RedisService::get($cacheKey)){
             return $result;
         }
 
-        $result = parent::checkExists($field, $value, $pk, 0);
+        $result = parent::checkExists($field, $value, $pk, $status);
         if($result){
             RedisService::set($cacheKey, $result, rand(3,5));
         }