fuyu 5 lat temu
rodzic
commit
4f03d34648
1 zmienionych plików z 5 dodań i 3 usunięć
  1. 5 3
      application/inter/controller/Writereport.php

+ 5 - 3
application/inter/controller/Writereport.php

@@ -511,8 +511,7 @@ class Writereport extends Base
                 //远程
                 
                 $this->confirmReport($report_info['remote_application_id']);
-                Log::record('xxxxxxxxx');
-                die;
+               
                 // DB::table('remote_application')->where('id',$report_info['remote_application_id'])->update(['report_status'=>'9']);
                 // 添加messages消息
                 $t = '您的报告已确认';
@@ -579,9 +578,12 @@ class Writereport extends Base
             return true;
         } catch (\Exception $e) {
             // 回滚事务
+            DB::rollback();
             Log::record("-----错误-----");
+            Log::record('xxxxxxxxx');
+            die;
             Log::record($e);
-            DB::rollback();
+            
         }
         return json_encode(['status'=>'fail','code'=>'2110','确认报告失败']);
     }