Skip to content

Commit

Permalink
异步与同步通知问题
Browse files Browse the repository at this point in the history
fixed #84.
  • Loading branch information
helei112g committed Sep 20, 2017
1 parent 2eed0b4 commit 81ef7c8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Common/Ali/Data/AliBaseData.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function makeSign($signStr)
}

/**
* 构建 APP支付 加密数据
* 构建 支付 加密数据
* @author helei
*/
protected function buildData()
Expand All @@ -83,11 +83,17 @@ protected function buildData()
'sign_type' => $this->signType,
'timestamp' => $this->timestamp,
'version' => $this->version,
'notify_url' => $this->notifyUrl,

// 业务参数
'biz_content' => json_encode($bizContent, JSON_UNESCAPED_UNICODE),
];

// 电脑支付 wap支付添加额外参数
if (in_array($this->method, ['alipay.trade.page.pay', 'alipay.trade.wap.pay'])) {
$signData['return_url'] = $this->returnUrl;
}

// 移除数组中的空值
$this->retData = ArrayUtil::paraFilter($signData);
}
Expand Down

0 comments on commit 81ef7c8

Please sign in to comment.