|
|
@@ -181,9 +181,7 @@ class Devices extends Model
|
|
|
"Type" => $fileType, //支持的类型:img,pdf,html,doc,docx,xls,xlsx,ppt,pptx
|
|
|
"filename" => $filename,
|
|
|
"trueColor" => $printType,//是否彩色打印,取值:True或False
|
|
|
- "Duplex" => $pageType,// 参数,取值有:Simplex-单面,Vertical-双面长装订,Horizontal-双面短装订
|
|
|
"Copies" => $nums,//打印份数,取值:1~100
|
|
|
- "printRange" => $pageRange,//打印页码范围:1,2,3,4,5,6
|
|
|
"Landscape" => "False",//打印内容是否旋转90度,取值:True或False
|
|
|
"Scaling" => "True",//打印内容是否自适应纸张大小,取值:True或False
|
|
|
"tasktype" => "now",//打印任务类型,可选定是立即打印还是定时打印,取值:now或plan
|
|
|
@@ -213,6 +211,13 @@ class Devices extends Model
|
|
|
$params['Height'] = $pageHeight;
|
|
|
}
|
|
|
|
|
|
+ if($type == 2){
|
|
|
+ // 参数,取值有:Simplex-单面,Vertical-双面长装订,Horizontal-双面短装订
|
|
|
+ $params["Duplex"] = $pageType;
|
|
|
+ //打印页码范围:1,2,3,4,5,6
|
|
|
+ $params["printRange"] = $pageRange;
|
|
|
+ }
|
|
|
+
|
|
|
// 发起请求
|
|
|
saveLogCache('print:params', $params);
|
|
|
$res = httpRequest($apiUrl, $params, 'post', 'array', 300);
|