<?php 
namespace Home\Controller;
class PrintController extends BaseController{
    public function index(){
        $print= new \Common\Vendor\ylyApi;
        
        $machine_code='4004534151';
        
        $content='<FS><center>汉潮门店系统</center></FS><table><tr><td>列1</td><td>列2</td><td>列3</td></tr></table><right>'.time_format(NOW_TIME).'</right><QR>http://www.hanchao9999.com</QR>';

        $order_sn=base_order();
        $print= $print->doPrint($machine_code,$content,$order_sn);//打印
        print_r($print);
    }
    public function txt(){
    	$machine_code='4004534151';
    	$order_sn=I('order_sn');
    	$data=del_print_template($order_sn);
    	if($data['status']==1){
    		$print=doPrint($machine_code,$data['content'],$order_sn);
    		 print_r($print);
    	}else{
    		print_r($data['info']);
    	}
    	print_r($data['content']);
    	
    }
}
?>