|
|
|
|
@ -107,7 +107,7 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
/**
|
|
|
|
|
* 每月2号: 检查PayPal的费率
|
|
|
|
|
*/
|
|
|
|
|
if (date('d')==='2') {
|
|
|
|
|
if (date('d')==='02') {
|
|
|
|
|
async_curl('https://www.mycht.cn/webht.php/apps/pay/paymentservice/check_paypal_rate');
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
@ -225,6 +225,20 @@ class WxpayService extends CI_Controller {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function refund() {
|
|
|
|
|
$this->load->model('WxpayRefundContentBuilder', 'refund_builder');
|
|
|
|
|
$refund_payload = $this->input->post();
|
|
|
|
|
|
|
|
|
|
$res = array(
|
|
|
|
|
"errcode" => "0",
|
|
|
|
|
"errmsg" => "",
|
|
|
|
|
"result" => "{}",
|
|
|
|
|
);
|
|
|
|
|
$transaction_id = '';
|
|
|
|
|
$this->query_builder->set_transaction_id($transaction_id);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function response_to_wx($response_arr)
|
|
|
|
|
{
|
|
|
|
|
$response_body = to_xml($response_arr);
|
|
|
|
|
|