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 31215c58
authored
Oct 23, 2025
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_sw_qrcode' into 'master'
扫呗聚合码支付(用于支付宝) See merge request !12
2 parents
ad35f25f
85175238
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
src/Common/SwThree/Data/BackScanChargeData.php
src/Common/SwThreeConfig.php
src/Notify/SwNotify.php
src/Common/SwThree/Data/BackScanChargeData.php
View file @
31215c5
...
@@ -15,7 +15,7 @@ class BackScanChargeData extends SwBaseData
...
@@ -15,7 +15,7 @@ class BackScanChargeData extends SwBaseData
{
{
public
function
getData
()
public
function
getData
()
{
{
$this
->
retData
[
'qr_code'
]
=
$this
->
qr_
code
;
//二维码码串
$this
->
retData
[
'qr_code'
]
=
$this
->
qr_
url
??
$this
->
qr_code
;
//二维码码串
$this
->
retData
[
'other'
]
=
[
$this
->
retData
[
'other'
]
=
[
'pay_type'
=>
$this
->
pay_type
,
'pay_type'
=>
$this
->
pay_type
,
'merchant_name'
=>
$this
->
merchant_name
,
'merchant_name'
=>
$this
->
merchant_name
,
...
...
src/Common/SwThreeConfig.php
View file @
31215c5
...
@@ -9,7 +9,7 @@ final class SwThreeConfig extends ConfigInterface
...
@@ -9,7 +9,7 @@ final class SwThreeConfig extends ConfigInterface
{
{
public
$signType
=
'MD5'
;
public
$signType
=
'MD5'
;
public
$pay_ver
=
20
1
;
//版本号,当前版本201
public
$pay_ver
=
20
2
;
//版本号,当前版本201
public
$pay_type
;
//请求类型,010微信,020支付宝,060qq钱包,090口碑,100翼支付
public
$pay_type
;
//请求类型,010微信,020支付宝,060qq钱包,090口碑,100翼支付
...
@@ -40,7 +40,7 @@ final class SwThreeConfig extends ConfigInterface
...
@@ -40,7 +40,7 @@ final class SwThreeConfig extends ConfigInterface
// const FACEPAY_URL = '/pay/110/facepay';//自助收银
// const FACEPAY_URL = '/pay/110/facepay';//自助收银
const
SCANPAY_URL
=
'/pay/open/
pre
pay'
;
//扫码支付(预支付)
const
SCANPAY_URL
=
'/pay/open/
qr
pay'
;
//扫码支付(预支付)
// const BARCODE_URL = '/pay/100/barcodepay';//刷卡(条码)支付
// const BARCODE_URL = '/pay/100/barcodepay';//刷卡(条码)支付
...
...
src/Notify/SwNotify.php
View file @
31215c5
...
@@ -85,6 +85,10 @@ class SwNotify extends NotifyStrategy
...
@@ -85,6 +85,10 @@ class SwNotify extends NotifyStrategy
$retSign
=
$retData
[
'key_sign'
];
$retSign
=
$retData
[
'key_sign'
];
$data
=
ArrayUtil
::
removeKeys
(
$retData
,
[
'key_sign'
,
'pay_trace'
,
'pay_time'
,
'receipt_fee'
]);
$data
=
ArrayUtil
::
removeKeys
(
$retData
,
[
'key_sign'
,
'pay_trace'
,
'pay_time'
,
'receipt_fee'
]);
if
(
$data
[
'pay_type'
]
==
'020'
)
{
return
true
;
}
$values
=
[
$values
=
[
'return_code'
=>
$data
[
'return_code'
],
'return_code'
=>
$data
[
'return_code'
],
'return_msg'
=>
$data
[
'return_msg'
],
'return_msg'
=>
$data
[
'return_msg'
],
...
...
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