|
@@ -199,7 +199,7 @@ function setword($type,$id){
|
|
|
];
|
|
|
$templateProcessor->setValues($array);
|
|
|
$name = 'wxdd-'.$id.'-'.time().'.docx';
|
|
|
- $url = 'http://'.$_SERVER['SERVER_NAME']."/down/".$name;
|
|
|
+ $url = 'https://'.$_SERVER['SERVER_NAME']."/down/".$name;
|
|
|
$templateProcessor->saveAs($dir2.$name);
|
|
|
break;
|
|
|
case 2: //采购订单
|
|
@@ -264,7 +264,7 @@ function setword($type,$id){
|
|
|
$templateProcessor->setValue('num#'.($k+1), $v['number']);
|
|
|
}
|
|
|
$name = $filename.'-'.$id.'-'.time().'.docx';
|
|
|
- $url = 'http://'.$_SERVER['SERVER_NAME']."/down/".$name;
|
|
|
+ $url = 'https://'.$_SERVER['SERVER_NAME']."/down/".$name;
|
|
|
$templateProcessor->saveAs($dir2.$name);
|
|
|
break;
|
|
|
case 5: //海运订单
|
|
@@ -294,7 +294,7 @@ function setword($type,$id){
|
|
|
$templateProcessor->setValue('num#'.($k+1), $v['weight']);
|
|
|
}
|
|
|
$name = 'hydd-'.$id.'-'.time().'.docx';
|
|
|
- $url = 'http://'.$_SERVER['SERVER_NAME']."/down/".$name;
|
|
|
+ $url = 'https://'.$_SERVER['SERVER_NAME']."/down/".$name;
|
|
|
$templateProcessor->saveAs($dir2.$name);
|
|
|
break;
|
|
|
}
|