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']},没有图片
";
}
}