1
This commit is contained in:
parent
8b7c653b3c
commit
d12a3664fb
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user