队列调整
This commit is contained in:
@@ -51,17 +51,22 @@ class QueueJob
|
||||
*/
|
||||
|
||||
public function setRedisLabel($aParam = []){
|
||||
|
||||
//判断数据是否为空
|
||||
if(empty($aParam['redis_key'])){
|
||||
return false;
|
||||
return 3;
|
||||
}
|
||||
//获取值
|
||||
$sValue = $this->getRedisLabel($aParam['redis_key']);
|
||||
if(!empty($sValue)){
|
||||
return false;
|
||||
if($sValue == $aParam['redis_key']){
|
||||
return 4;
|
||||
}
|
||||
$result = Cache::set($aParam['redis_key'], $aParam['redis_key'], 3600);
|
||||
if($result == true){
|
||||
return 1;
|
||||
}
|
||||
//写入
|
||||
return Cache::set($aParam['redis_key'], $aParam['redis_key'], 3600);
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user