edit-down_contracts2
This commit is contained in:
@@ -59,7 +59,7 @@ class Img extends CI_Controller
|
||||
foreach ($lists as $key => $val) {
|
||||
echo "开始订单:{$val['o_id']}<br>";
|
||||
$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}<br>";
|
||||
}else{
|
||||
file_get_contents("https://api.liche.cn/wxapp/licheb/protocol/pdf_img?id={$v['id']}");
|
||||
echo "合同id:{$v['id']},没有图片<br>";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user