|
@@ -86,10 +86,10 @@ class Index extends BaseController
|
|
'StartDate'=>'',
|
|
'StartDate'=>'',
|
|
'EndDate'=>''
|
|
'EndDate'=>''
|
|
]])); //请求获取接口
|
|
]])); //请求获取接口
|
|
- var_dump($result);die;
|
|
|
|
- Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>$result]);
|
|
|
|
|
|
+ Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>json_encode($result)]);
|
|
$data = ((array)$result)['QueryReports2Result'];
|
|
$data = ((array)$result)['QueryReports2Result'];
|
|
$info = json_decode(json_encode($data),true);
|
|
$info = json_decode(json_encode($data),true);
|
|
|
|
+ var_dump($info);die;
|
|
Db::table('api_log')->insert(['type'=>4,'barcode'=>$code]);
|
|
Db::table('api_log')->insert(['type'=>4,'barcode'=>$code]);
|
|
if($info)
|
|
if($info)
|
|
{
|
|
{
|