|
@@ -546,7 +546,7 @@ class Writereport extends Base
|
|
|
}
|
|
|
|
|
|
private function confirmReport($application_id) {
|
|
|
- DB::startTrans();
|
|
|
+ Db::startTrans();
|
|
|
try{
|
|
|
DB::table('remote_application')->where('id', $application_id)->update(['report_status'=>'9']);
|
|
|
DB::table('remote_application')->where('id',$application_id)->update(['report_status'=>'9']);
|
|
@@ -573,12 +573,12 @@ class Writereport extends Base
|
|
|
'timestamp' => time(),
|
|
|
]);
|
|
|
// 提交事务
|
|
|
- DB::commit();
|
|
|
+ Db::commit();
|
|
|
// todo 消息推送
|
|
|
return true;
|
|
|
} catch (\Exception $e) {
|
|
|
// 回滚事务
|
|
|
- DB::rollback();
|
|
|
+ Db::rollback();
|
|
|
Log::record("-----错误-----");
|
|
|
Log::record('xxxxxxxxx');
|
|
|
die;
|