Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ldy
/
payment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9e09c671
authored
Nov 24, 2020
by
yeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
1 parent
fdb80714
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
src/Common/Weixin/Data/BackPubChargeData.php
src/Common/Weixin/Data/WxBaseData.php
src/Common/Weixin/Data/BackPubChargeData.php
View file @
9e09c67
...
@@ -25,10 +25,14 @@ class BackPubChargeData extends WxBaseData
...
@@ -25,10 +25,14 @@ class BackPubChargeData extends WxBaseData
$this
->
retData
=
[
$this
->
retData
=
[
'appId'
=>
$this
->
appId
,
'appId'
=>
$this
->
appId
,
'timeStamp'
=>
time
()
.
''
,
'timeStamp'
=>
time
()
.
''
,
'nonceStr'
=>
$this
->
nonceStr
,
'nonceStr'
=>
$this
->
nonceStr
,
'package'
=>
'prepay_id='
.
$this
->
prepay_id
,
'package'
=>
'prepay_id='
.
$this
->
prepay_id
,
'signType'
=>
'MD5'
,
// 签名算法,暂支持MD5
'signType'
=>
'MD5'
,
// 签名算法,暂支持MD5
];
];
if
(
!
empty
(
$this
->
sub_appid
))
{
$this
->
retData
[
'sub_appid'
]
=
$this
->
sub_appid
;
$this
->
retData
[
'sub_mch_id'
]
=
$this
->
sub_mch_id
;
}
}
}
protected
function
checkDataParam
()
protected
function
checkDataParam
()
...
...
src/Common/Weixin/Data/WxBaseData.php
View file @
9e09c67
...
@@ -25,6 +25,9 @@ use Payment\Common\PayException;
...
@@ -25,6 +25,9 @@ use Payment\Common\PayException;
* @property string $publicKeyPem 从获取RSA加密公钥API中得到的RSA公钥并进行将PKCS#1转为PKCS#8的pem格式文件
* @property string $publicKeyPem 从获取RSA加密公钥API中得到的RSA公钥并进行将PKCS#1转为PKCS#8的pem格式文件
* @property string $tradeType 支付类型
* @property string $tradeType 支付类型
* @property string $terminal_id 终端设备号(门店号或收银设备ID),默认请传"WEB"
* @property string $terminal_id 终端设备号(门店号或收银设备ID),默认请传"WEB"
* @property string $sub_appid
* @property string $sub_mch_id 终端设备号(门店号或收银设备ID),默认请传"WEB"
*
*
*
* @package Payment\Common\Weixin\Data
* @package Payment\Common\Weixin\Data
*/
*/
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment