Commit 26322940 by 杨树贤

fix

parent 96983883
Showing with 2 additions and 1 deletions
......@@ -87,6 +87,7 @@ class SupplierContractService
$data['create_uid'] = request()->user->userId;
$data['create_name'] = request()->user->name;
$insertId = SupplierContractModel::insertGetId($data);
$result = $insertId;
} else {
$data['update_time'] = time();
$data['update_uid'] = request()->user->userId;
......@@ -119,7 +120,7 @@ class SupplierContractService
return true;
} catch (\Exception $e) {
\DB::connection('web')->rollBack();
\Log::error(json_encode($e->getMessage()));
\Log::error(json_encode($e->getMessage()) . ' ' . $e->getLine());
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment