You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/webht/third_party/pay/models/WxpayQueryContentBuilder.php

64 lines
2.0 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class WxpayQueryContentBuilder extends CI_Model
{
private $appid; // 微信分配的公众账号ID
private $mch_id; // 微信支付分配的商户号
private $nonce_str; // 随机字符串不长于32位。推荐随机数生成算法
private $sign; // 签名,详见签名生成算法
private $bill_date; // 下载对账单的日期格式20140603
private $bill_type;
/*
ALL默认值返回当日所有订单信息不含充值退款订单
SUCCESS返回当日成功支付的订单不含充值退款订单
REFUND返回当日退款订单不含充值退款订单
RECHARGE_REFUND返回当日充值退款订单
*/
private $tar_type; // 非必传参数固定值GZIP返回格式为.gzip的压缩包账单。不传则默认为数据流形式。
private $bizContentarr = array();
private $bizContent = NULL;
public function getBizContent($arr=false)
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr); // 5.4增加的常量 JSON_UNESCAPED_UNICODE
}
$ret = ($arr===false) ? $this->bizContent : $this->bizContentarr ;
return $ret;
}
public function set_bill_date($bill_date)
{
$this->bill_date = $bill_date;
$this->bizContentarr['bill_date'] = $bill_date;
}
public function set_bill_type($bill_type)
{
$this->bill_type = $bill_type;
$this->bizContentarr['bill_type'] = $bill_type;
}
public function set_tar_type($tar_type)
{
$this->tar_type = $tar_type;
$this->bizContentarr['tar_type'] = $tar_type;
}
public function set_transaction_id($transaction_id)
{
$this->transaction_id = $transaction_id;
$this->bizContentarr['transaction_id'] = $transaction_id;
}
}
/* End of file WxpayQueryContentBuilder.php */
?>