فهرست منبع

Weenier 168otc项目部署 0630

wesmiler 3 سال پیش
والد
کامیت
c29ff537df
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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));
         }