作者 lyh

gx

... ... @@ -179,11 +179,7 @@ class SyncProject extends Command
];
// DB::beginTransaction();
// try {
@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);
$id = $this->saveProject($data['project']);
$this->setPostId($data['deploy_build']['plan'],$id);
$this->savePayment($data['payment'],$id);
$this->saveDeployBuild($data['deploy_build'],$id);
... ... @@ -209,11 +205,8 @@ class SyncProject extends Command
$paddingLength = Project::TYPE_FIVE - $length; // 计算填充前面的 0 的位数
$zeros = str_repeat("0", $paddingLength);
$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();
@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);
$projectModel->edit(['post_id'=>$number],['id'=>$id]);
return true;
}
... ... @@ -278,6 +271,8 @@ class SyncProject extends Command
if(isset($param['renewal_record']) && !empty($param['renewal_record'])){
$param['bill'] = Arr::a2s($param['bill']);
}
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);
return $paymentModel->add($param);
}
... ...