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 4528a002
authored
Dec 28, 2021
by
yeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增扫呗支付参数
1 parent
558b75ba
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
composer.json
src/Common/Sw/Data/Charge/LiteChargeData.php
src/Notify/LTFNotify.php
composer.json
View file @
4528a00
{
{
"name"
:
"ldy/payment"
,
"name"
:
"ldy/payment"
,
"type"
:
"library"
,
"type"
:
"library"
,
"version"
:
"3.4.
1
"
,
"version"
:
"3.4.
2
"
,
"description"
:
"支付宝支付、微信支付、招商一网通支付、通联支付、米付支付、利楚扫呗、富友支付、联拓付、易生支付、银盛支付 php SDK。"
,
"description"
:
"支付宝支付、微信支付、招商一网通支付、通联支付、米付支付、利楚扫呗、富友支付、联拓付、易生支付、银盛支付 php SDK。"
,
"keywords"
:
[
"alipay"
,
"weixin"
,
"支付宝支付"
,
"微信支付"
,
"通联支付"
,
"集成支付接口SDK"
,
"招商一网通"
,
"一网通"
,
"利楚扫呗"
,
"富友支付"
],
"keywords"
:
[
"alipay"
,
"weixin"
,
"支付宝支付"
,
"微信支付"
,
"通联支付"
,
"集成支付接口SDK"
,
"招商一网通"
,
"一网通"
,
"利楚扫呗"
,
"富友支付"
],
"homepage"
:
""
,
"homepage"
:
""
,
...
...
src/Common/Sw/Data/Charge/LiteChargeData.php
View file @
4528a00
...
@@ -67,6 +67,15 @@ class LiteChargeData extends ChargeBaseData
...
@@ -67,6 +67,15 @@ class LiteChargeData extends ChargeBaseData
if
(
isset
(
$this
->
attach
)){
if
(
isset
(
$this
->
attach
)){
$signData
[
'attach'
]
=
$this
->
attach
;
$signData
[
'attach'
]
=
$this
->
attach
;
}
}
if
(
!
empty
(
$this
->
goods_tag
)){
$signData
[
'goods_tag'
]
=
$this
->
goods_tag
;
}
if
(
!
empty
(
$this
->
goods_detail
)){
$signData
[
'goods_detail'
]
=
$this
->
goods_detail
;
}
if
(
!
empty
(
$this
->
food_order_type
)){
$signData
[
'food_order_type'
]
=
$this
->
food_order_type
;
}
// 移除数组中的空值
// 移除数组中的空值
$this
->
retData
=
ArrayUtil
::
paraFilter
(
$signData
);
$this
->
retData
=
ArrayUtil
::
paraFilter
(
$signData
);
...
...
src/Notify/LTFNotify.php
View file @
4528a00
...
@@ -105,11 +105,11 @@ class LTFNotify extends NotifyStrategy{
...
@@ -105,11 +105,11 @@ class LTFNotify extends NotifyStrategy{
* 向客户端返回必要的数据
* 向客户端返回必要的数据
*
*
* @param array $data
* @param array $data
* @return void
* @return array
*/
*/
protected
function
getRetData
(
array
$data
){
protected
function
getRetData
(
array
$data
){
// TODO: Implement getRetData() method.
// TODO: Implement getRetData() method.
$retData
=
[
return
[
'return_code'
=>
$data
[
'code'
],
'return_code'
=>
$data
[
'code'
],
'return_msg'
=>
$data
[
'msg'
],
'return_msg'
=>
$data
[
'msg'
],
'out_trade_no'
=>
$data
[
'outTradeNo'
],
'out_trade_no'
=>
$data
[
'outTradeNo'
],
...
@@ -121,7 +121,6 @@ class LTFNotify extends NotifyStrategy{
...
@@ -121,7 +121,6 @@ class LTFNotify extends NotifyStrategy{
'pay_time'
=>
$data
[
'payTime'
],
'pay_time'
=>
$data
[
'payTime'
],
'channel'
=>
Config
::
LTF_CHARGE
,
'channel'
=>
Config
::
LTF_CHARGE
,
];
];
return
$retData
;
}
}
/**
/**
...
...
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