Alipay 异步通知日志;删除JSON_UNESCAPED_UNICODE常量,PHP5.4以下不支持

feature/trippest
lyt 8 years ago
parent f215ce52db
commit f5411c2138

@ -93,6 +93,7 @@ class AlipayTradeService extends CI_Controller
public function alipay_notice()
{
$resp_arr = $this->input->post();
log_message('error','Alipay Original Notice :'.json_encode($resp_arr));
$asyns_resp = $this->check($resp_arr);
// 未得到结果
if (empty($asyns_resp->data->out_trade_no)) {

@ -24,7 +24,7 @@ class AlipayTradeQueryContentBuilder extends CI_Model
public function getBizContent()
{
if(!empty($this->bizContentarr)){
$this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
$this->bizContent = json_encode($this->bizContentarr); // 5.4增加的常量 JSON_UNESCAPED_UNICODE
}
return $this->bizContent;
}

Loading…
Cancel
Save