正在显示
1 个修改的文件
包含
4 行增加
和
9 行删除
| @@ -179,11 +179,7 @@ class SyncProject extends Command | @@ -179,11 +179,7 @@ class SyncProject extends Command | ||
| 179 | ]; | 179 | ]; |
| 180 | // DB::beginTransaction(); | 180 | // DB::beginTransaction(); |
| 181 | // try { | 181 | // try { |
| 182 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111111111, true) . PHP_EOL, FILE_APPEND); | ||
| 183 | - | ||
| 184 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['deploy_build'], true) . PHP_EOL, FILE_APPEND); | ||
| 185 | - $id = $this->saveProject($data['project']); | ||
| 186 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['deploy_build']['plan'], true) . PHP_EOL, FILE_APPEND); | 182 | + $id = $this->saveProject($data['project']); |
| 187 | $this->setPostId($data['deploy_build']['plan'],$id); | 183 | $this->setPostId($data['deploy_build']['plan'],$id); |
| 188 | $this->savePayment($data['payment'],$id); | 184 | $this->savePayment($data['payment'],$id); |
| 189 | $this->saveDeployBuild($data['deploy_build'],$id); | 185 | $this->saveDeployBuild($data['deploy_build'],$id); |
| @@ -209,11 +205,8 @@ class SyncProject extends Command | @@ -209,11 +205,8 @@ class SyncProject extends Command | ||
| 209 | $paddingLength = Project::TYPE_FIVE - $length; // 计算填充前面的 0 的位数 | 205 | $paddingLength = Project::TYPE_FIVE - $length; // 计算填充前面的 0 的位数 |
| 210 | $zeros = str_repeat("0", $paddingLength); | 206 | $zeros = str_repeat("0", $paddingLength); |
| 211 | $number = Project::TYPE_SIX.$plan.$zeros.$id; | 207 | $number = Project::TYPE_SIX.$plan.$zeros.$id; |
| 212 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($number, true) . PHP_EOL, FILE_APPEND); | ||
| 213 | $projectModel = new Project(); | 208 | $projectModel = new Project(); |
| 214 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($id, true) . PHP_EOL, FILE_APPEND); | ||
| 215 | - $rs = $projectModel->edit(['post_id'=>$number],['id'=>$id]); | ||
| 216 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($rs, true) . PHP_EOL, FILE_APPEND); | 209 | + $projectModel->edit(['post_id'=>$number],['id'=>$id]); |
| 217 | return true; | 210 | return true; |
| 218 | } | 211 | } |
| 219 | 212 | ||
| @@ -278,6 +271,8 @@ class SyncProject extends Command | @@ -278,6 +271,8 @@ class SyncProject extends Command | ||
| 278 | if(isset($param['renewal_record']) && !empty($param['renewal_record'])){ | 271 | if(isset($param['renewal_record']) && !empty($param['renewal_record'])){ |
| 279 | $param['bill'] = Arr::a2s($param['bill']); | 272 | $param['bill'] = Arr::a2s($param['bill']); |
| 280 | } | 273 | } |
| 274 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111, true) . PHP_EOL, FILE_APPEND); | ||
| 275 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND); | ||
| 281 | return $paymentModel->add($param); | 276 | return $paymentModel->add($param); |
| 282 | } | 277 | } |
| 283 | 278 |
-
请 注册 或 登录 后发表评论