From 8ddd5251e29459300e4fae9fc77d13740fdcc9e5 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Fri, 20 May 2022 15:42:29 +0800 Subject: [PATCH] edit-down_contracts2 --- admin/controllers/Img.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/controllers/Img.php b/admin/controllers/Img.php index 0fbbcd43..76e6f309 100644 --- a/admin/controllers/Img.php +++ b/admin/controllers/Img.php @@ -59,7 +59,7 @@ class Img extends CI_Controller foreach ($lists as $key => $val) { echo "开始订单:{$val['o_id']}
"; $row = $this->receiver_orders_v2_model->get(['id'=>$val['o_id']],'sid,owner_mobile,owner_name'); - $contract = $this->order_contracts_model->select(['o_id'=>$val['o_id'],"imgs <> ''",'type'=>1],'','','','id,o_id,file,imgs,type'); + $contract = $this->order_contracts_model->select(['o_id'=>$val['o_id'],"imgs <> ''",'type'=>0],'','','','id,o_id,file,imgs,type'); if($contract){ foreach ($contract as $v) { $path = FCPATH."pdf/{$row['owner_name']}"; @@ -108,6 +108,7 @@ class Img extends CI_Controller $pdf->Output( $path.'/'.$file_name,'F'); echo "合同id:{$v['id']},保存成功{$path}/{$file_name}
"; }else{ + file_get_contents("https://api.liche.cn/wxapp/licheb/protocol/pdf_img?id={$v['id']}"); echo "合同id:{$v['id']},没有图片
"; } }