队列调整

This commit is contained in:
chengxl
2025-07-07 17:54:17 +08:00
parent 34cb5037e1
commit 9d8e244ea9
12 changed files with 31 additions and 26 deletions

View File

@@ -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;
}
/**