This commit is contained in:
hujiabin 2022-11-24 18:51:07 +08:00
parent 8b7c653b3c
commit d12a3664fb

View File

@ -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);
}