-------------------------------------------
try{
//Db::startTrans();
Db::table($this->tableName)->insert($postData);
$this->addTravelDetails($postData);
//Db::commit();
return $this->responseSuccess($postData);
}catch (\Exception $exception){
//Db::rollback();
return $this->responseFail('保存失败,请重试!', $exception);
}
最佳答案