正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -178,10 +178,14 @@ class SyncProject extends Command | @@ -178,10 +178,14 @@ class SyncProject extends Command | ||
| 178 | 'project_after' => [], | 178 | 'project_after' => [], |
| 179 | 'payment' => [ | 179 | 'payment' => [ |
| 180 | 'amount' => $param['plan_price'], | 180 | 'amount' => $param['plan_price'], |
| 181 | - 'contract' => !empty($param['files']) ? json_encode($param['files']) : " ", | ||
| 182 | - 'bill' => !empty($param['images']) ? json_encode($param['images']) : " ", | ||
| 183 | ], | 181 | ], |
| 184 | ]; | 182 | ]; |
| 183 | + if(!empty($param['files'])){ | ||
| 184 | + $data['payment']['contract'] = json_encode($param['files']); | ||
| 185 | + } | ||
| 186 | + if(!empty($param['images'])){ | ||
| 187 | + $data['payment']['bill'] = json_encode($param['images']); | ||
| 188 | + } | ||
| 185 | DB::beginTransaction(); | 189 | DB::beginTransaction(); |
| 186 | try { | 190 | try { |
| 187 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111, true) . PHP_EOL, FILE_APPEND); | 191 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111, true) . PHP_EOL, FILE_APPEND); |
-
请 注册 或 登录 后发表评论