Skip to content

Commit 7721034

Browse files
committed
增加txnSubType支持
1 parent d79ef41 commit 7721034

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Message/ExpressPurchaseRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ public function getData()
2222
{
2323
$this->validateData();
2424

25-
$data = array(
25+
$data = array (
2626
//版本号
2727
'version' => $this->getVersion(),
2828
//编码方式
2929
'encoding' => $this->getEncoding(),
3030
//证书ID
3131
'certId' => $this->getCertId(),
3232
//交易类型
33-
'txnType' => '01',
33+
'txnType' => $this->getTxnSubType() ?: '01',
3434
//交易子类
35-
'txnSubType' => '01',
35+
'txnSubType' => $this->getTxnSubType() ?: '01',
3636
//业务类型
3737
'bizType' => $this->getBizType(),
3838
//前台通知地址

0 commit comments

Comments
 (0)