diff --git a/webapp/controller/GunController.class.php b/webapp/controller/GunController.class.php index d2c12eb2..a1b93908 100644 --- a/webapp/controller/GunController.class.php +++ b/webapp/controller/GunController.class.php @@ -777,11 +777,17 @@ class GunController extends BaseAuthedController { $gunDto = Gun::toDto($gun); $costGunDto = Gun::toDto($costGun); } + $tranDb= Transaction::find($value['trans_id']); + if (!$tranDb){ + myself()->_rspErr(1, 'ERROR param '. $value['trans_id']); + continue; + } $info = array( 'trans_id'=>$value['trans_id'], 'state'=>$value['state'], 'gunInfo'=>$gunDto, 'costGunInfo'=>$costGunDto, + 'result'=>$tranDb['result'] ); array_push($infos,$info); }