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