正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -27,6 +27,7 @@ use App\Services\ProjectServer; | @@ -27,6 +27,7 @@ use App\Services\ProjectServer; | ||
| 27 | use Hashids\Hashids; | 27 | use Hashids\Hashids; |
| 28 | use App\Models\User\User as UserModel; | 28 | use App\Models\User\User as UserModel; |
| 29 | use Illuminate\Support\Facades\DB; | 29 | use Illuminate\Support\Facades\DB; |
| 30 | +use Illuminate\Support\Facades\Log; | ||
| 30 | 31 | ||
| 31 | /** | 32 | /** |
| 32 | * Class ProjectLogic | 33 | * Class ProjectLogic |
| @@ -98,6 +99,7 @@ class ProjectLogic extends BaseLogic | @@ -98,6 +99,7 @@ class ProjectLogic extends BaseLogic | ||
| 98 | DB::commit(); | 99 | DB::commit(); |
| 99 | }catch (\Exception $e){ | 100 | }catch (\Exception $e){ |
| 100 | DB::rollBack(); | 101 | DB::rollBack(); |
| 102 | + Log::error($e->getMessage()); | ||
| 101 | $this->fail('error'); | 103 | $this->fail('error'); |
| 102 | } | 104 | } |
| 103 | return $this->success(); | 105 | return $this->success(); |
-
请 注册 或 登录 后发表评论