|
...
|
...
|
@@ -59,6 +59,7 @@ use Illuminate\Support\Facades\Cache; |
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
use Illuminate\Support\Facades\Http;
|
|
|
|
use Illuminate\Support\Facades\Log as LogInfo;
|
|
|
|
use Illuminate\Support\Facades\Redis;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class ProjectLogic
|
|
...
|
...
|
@@ -528,6 +529,13 @@ class ProjectLogic extends BaseLogic |
|
|
|
protected function saveProjectDeployBuild($deploy_build){
|
|
|
|
$deployBuildModel = new DeployBuild();
|
|
|
|
$deploy_build['configuration'] = Arr::a2s(!empty($deploy_build['configuration']) ? $deploy_build['configuration'] : []);
|
|
|
|
|
|
|
|
//如果更改了缩略图压缩大小,同步写入处理缩略图任务队列
|
|
|
|
$old_thumb_info = $deployBuildModel->read(['id'=>$deploy_build['id']],['thumb_w']);
|
|
|
|
if(isset($old_thumb_info['thumb_w']) && $old_thumb_info['thumb_w'] != $deploy_build['thumb_w']){
|
|
|
|
Redis::lpush('thumb_project_image',$deploy_build['project_id']);
|
|
|
|
}
|
|
|
|
|
|
|
|
$deployBuildModel->edit($deploy_build,['id'=>$deploy_build['id']]);
|
|
|
|
return $this->success();
|
|
|
|
}
|
...
|
...
|
|