load->database();
	$this->table = 'taxzhengzhousk';
    $this->load_table('tax_zhengzhou_sk');
}
	public function get_orders($data)
	{
		//需要加密的报文
		$dataInfo = '';
		$dataInfo = '';
		$dataInfo = ''.$data['ebpcode'].'';//总价=成交数量*单价
		$dataInfo = ''.$data['orderno'].'';//####海关标准的参数代码 海关标准的参数代码 《JGS-20 海关业务代码集》- 货币代码
		$dataInfo = ''.$data['paycode'].'';
		$dataInfo = ''.$data['payname'].'';
		$dataInfo = ''.$data['payno'].'';
		$dataInfo = ''.$data['charge'].'';
		$dataInfo = ''.$data['accountingdate'].'';
		$dataInfo = ''.$data['currencycus'].'';
		$dataInfo = ''.$data['currencyciq'].'';
		$dataInfo = ''.$data['note'].'';//备注
		$dataInfo = '';
		
		$abs_path = './data/caiwu/rsa_public_key.key';
        $content = file_get_contents($abs_path);
		$key = openssl_pkey_get_public($content);
		openssl_public_encrypt($dataInfo,$encrypted,$key);
		//请求信息
		$xml = '';
		$xml = '';
		$xml = '';
		$xml = ''.$data['version'].'';//Webservice接口版本2.0
		$xml = ''.$data['companycode'].'';//电商企业的海关注册登记编号或统一社会信用代码
		$xml = ''.$data['apptype'].'';//企业报送类型。1-新增 2-变更 3-删除。
		$xml = ''.$data['appstatus'].'';//企业报送状态。1-暂存,2-申报。默认申报
		$xml = ''.md5($dataInfo).'';//验证加密报文是否一致
		$xml = ''.$data['createtime'].'';//单据生成日期,格式:YYYYMMDDhhmmss。
		$xml = ''.$data['customcode'].'';//关区代码(郑州保税区4611)
		$xml = '';
		$xml = ''.base64_encode($encrypted).'';//订单报文信息加密后内容
		$xml = '';
		$xml = 'xml='.$xml;
		$ch = curl_init(); 
		curl_setopt($ch, CURLOPT_URL,'http://emy.hnblc.com:9955/etouch-export/export/pay/pushPay'); 
		curl_setopt($ch, CURLOPT_POST, 1);
		curl_setopt($ch, CURLOPT_HEADER, 0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
		curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		$data = curl_exec($ch);
		curl_close($ch);
		$data = utf8_encode($data);
        libxml_disable_entity_loader(true);
        @$values = json_decode(json_encode(simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
		return $values;
	}
}  //end class