作者 lyh

gx

... ... @@ -182,7 +182,6 @@ class SyncProject extends Command
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111111111, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['deploy_build'], true) . PHP_EOL, FILE_APPEND);
$id = $this->saveProject($data['project']);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['deploy_build']['plan'], true) . PHP_EOL, FILE_APPEND);
$this->setPostId($data['deploy_build']['plan'],$id);
... ... @@ -212,7 +211,9 @@ class SyncProject extends Command
$number = Project::TYPE_SIX.$plan.$zeros.$id;
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($number, true) . PHP_EOL, FILE_APPEND);
$projectModel = new Project();
$projectModel->edit(['post_id'=>$number],['id'=>$id]);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($id, true) . PHP_EOL, FILE_APPEND);
$rs = $projectModel->edit(['post_id'=>$number],['id'=>$id]);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($rs, true) . PHP_EOL, FILE_APPEND);
return true;
}
... ...