|
|
@@ -163,6 +163,7 @@ class DataLogic
|
|
|
*/
|
|
|
public function setMatch($data)
|
|
|
{
|
|
|
+ $logdata = $data;
|
|
|
try {
|
|
|
//开启事务
|
|
|
DB::beginTransaction();
|
|
|
@@ -365,14 +366,14 @@ class DataLogic
|
|
|
}
|
|
|
|
|
|
|
|
|
- $this->writeLog($data, Response::success());
|
|
|
+ $this->writeLog($logdata, Response::success());
|
|
|
//提交事务
|
|
|
DB::commit();
|
|
|
return Response::success();
|
|
|
} catch (\Exception $e) {
|
|
|
//回滚事务
|
|
|
DB::rollBack();
|
|
|
- $this->writeLog($data, ['file' => $e->getFile(), 'line' => $e->getLine(), 'msg' => $e->getMessage()]);
|
|
|
+ $this->writeLog($logdata, ['file' => $e->getFile(), 'line' => $e->getLine(), 'msg' => $e->getMessage()]);
|
|
|
return $e->getMessage();
|
|
|
}
|
|
|
|
|
|
@@ -384,6 +385,7 @@ class DataLogic
|
|
|
*/
|
|
|
public function setMatchResult($data)
|
|
|
{
|
|
|
+ $logdata = $data;
|
|
|
try {
|
|
|
//开启事务
|
|
|
DB::beginTransaction();
|
|
|
@@ -486,14 +488,14 @@ class DataLogic
|
|
|
}
|
|
|
|
|
|
|
|
|
- $this->writeLog($data, Response::success());
|
|
|
+ $this->writeLog($logdata, Response::success());
|
|
|
//提交事务
|
|
|
DB::commit();
|
|
|
return Response::success();
|
|
|
} catch (\Exception $e) {
|
|
|
//回滚事务
|
|
|
DB::rollBack();
|
|
|
- $this->writeLog($data, ['file' => $e->getFile(), 'line' => $e->getLine(), 'msg' => $e->getMessage()]);
|
|
|
+ $this->writeLog($logdata, ['file' => $e->getFile(), 'line' => $e->getLine(), 'msg' => $e->getMessage()]);
|
|
|
return $e->getMessage();
|
|
|
}
|
|
|
|