作者 刘锟

update

@@ -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();