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 d56149cb
authored
Nov 05, 2025
by
wulei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix sw qrcode charge buildData
1 parent
85175238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
src/Common/SwThree/Data/Charge/ScanChargeData.php
src/Common/SwThree/Data/Charge/ScanChargeData.php
View file @
d56149c
...
...
@@ -45,17 +45,10 @@ class ScanChargeData extends ChargeBaseData
'terminal_trace'
=>
$this
->
terminal_trace
,
'terminal_time'
=>
$this
->
terminal_time
,
'total_fee'
=>
$this
->
total_fee
,
// 金额,单位分
// 'time_expire' => $this->timeout_express,
];
$signData
=
array_merge
(
$this
->
certainSignData
,[]);
if
(
isset
(
$this
->
sub_appid
)){
$signData
[
'sub_appid'
]
=
$this
->
sub_appid
;
}
if
(
isset
(
$this
->
order_body
)){
$signData
[
'order_body'
]
=
$this
->
order_body
;
}
...
...
@@ -65,13 +58,15 @@ class ScanChargeData extends ChargeBaseData
if
(
isset
(
$this
->
attach
)){
$signData
[
'attach'
]
=
$this
->
attach
;
}
if
(
isset
(
$this
->
goods_detail
)){
$signData
[
'goods_detail'
]
=
$this
->
goods_detail
;
//goods_Id String N 商品编号
//goods_name String N 商品名称
//quantity String N 商品数量
//price String N 商品单价,单位为分
// 链接失效时间 单位s。取值范围:1~7200的整数,不传默认7200s
if
(
isset
(
$this
->
timeout_express
))
{
$signData
[
'timeout_express'
]
=
$this
->
timeout_express
;
}
// 是否允许重复扫码或支付 0或不传:允许重复扫码或支付; 1:不允许重复扫码或支付; 2:允许terminal_trace值不变,但terminal_time值变化时,多次请求该接口生成收款码
if
(
isset
(
$this
->
repeated_trace
))
{
$signData
[
'repeated_trace'
]
=
$this
->
repeated_trace
;
}
// 移除数组中的空值
...
...
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