|
@@ -88,12 +88,13 @@ class Index extends BaseController
|
|
|
]])); //请求获取接口
|
|
|
Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>json_encode($result)]);
|
|
|
$data = ((array)$result)['QueryReports2Result'];
|
|
|
- var_dump($data);die;
|
|
|
$info = json_decode(json_encode($data),true);
|
|
|
+ var_dump($info);
|
|
|
Db::table('api_log')->insert(['type'=>4,'barcode'=>$code,'data'=>json_encode($result)]);
|
|
|
if($info)
|
|
|
{
|
|
|
$returnCode = $info['ResultCode'];
|
|
|
+ var_dump($returnCode);
|
|
|
if($returnCode !== '1')
|
|
|
{
|
|
|
return '报告PDF获取失败!迪安回传信息:'.$info['ResultMsg'];
|