作者 lyh

gx

... ... @@ -57,9 +57,12 @@ class CopyProjectJob implements ShouldQueue
$data = $data->getAttributes();
$type = $data['type'];
$data['type'] = 0;
$data['old_project_id'] = $this->param['project_id'];
$data['title'] = $data['title'].'-copy';
unset($data['id']);
$project_id = $projectModel->insertGetId($data);
$hashids = new Hashids($data['from_order_id'], 13, 'abcdefghjkmnpqrstuvwxyz1234567890');
$projectModel->edit(['from_order_id'=>$hashids->encode($project_id)],['id'=>$project_id]);
//复制部署表
$buildModel = new DeployBuild();
$buildData = $buildModel::where('project_id', $this->param['project_id'])->first();
... ...