瀏覽代碼

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));
         }