|
@@ -89,12 +89,10 @@ class Index extends BaseController
|
|
|
Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>json_encode($result)]);
|
|
|
$data = ((array)$result)['QueryReports2Result'];
|
|
|
$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 <= 0)
|
|
|
{
|
|
|
return '报告PDF获取失败!迪安回传信息:'.$info['ResultMsg'];
|