|
|
|
|
@ -42,9 +42,23 @@ class TestController extends Controller
|
|
|
|
|
}
|
|
|
|
|
public function lqs_test()
|
|
|
|
|
{
|
|
|
|
|
$a=[];
|
|
|
|
|
$neirong =request('neirong');
|
|
|
|
|
|
|
|
|
|
return DB::select($neirong);
|
|
|
|
|
// return DB::select($neirong);
|
|
|
|
|
$a=DB::select($neirong);
|
|
|
|
|
//return $a;
|
|
|
|
|
foreach ($a as $key=>$item){
|
|
|
|
|
$HSM_sfz =\App\Lib\HSM::HsmDecrypt($item->id_card_num);
|
|
|
|
|
if($HSM_sfz['status']!=true){
|
|
|
|
|
$item->id_card_num='解密失败';
|
|
|
|
|
}else{
|
|
|
|
|
$item->id_card_num=$HSM_sfz['data'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return redirect()->back()->with('data', $a);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//批量加密信息
|
|
|
|
|
|