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 5e6d05c7
authored
Oct 13, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-LTF' into 'master'
updata LTF config See merge request !3
2 parents
205ade7d
cbbe8458
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
src/Common/BaseData.php
src/Common/LTFConfig.php
src/Common/BaseData.php
View file @
5e6d05c
...
@@ -145,9 +145,9 @@ abstract class BaseData
...
@@ -145,9 +145,9 @@ abstract class BaseData
unset
(
$signData
);
unset
(
$signData
);
break
;
break
;
case
Config
::
LTF_PAY
:
case
Config
::
LTF_PAY
:
$signData
=
$
this
->
certainSignData
??
$
data
;
$signData
=
$data
;
$values
=
ArrayUtil
::
removeKeys
(
$signData
,
[
'sign'
]);
$values
=
ArrayUtil
::
removeKeys
(
$signData
,
[
'sign'
]);
if
(
$this
->
sign_sort
)
$values
=
ArrayUtil
::
arraySort
(
$values
);
$values
=
ArrayUtil
::
arraySort
(
$values
);
$signStr
=
ArrayUtil
::
createLinkstring
(
$values
);
$signStr
=
ArrayUtil
::
createLinkstring
(
$values
);
$this
->
makeSign
(
$signStr
);
$this
->
makeSign
(
$signStr
);
break
;
break
;
...
...
src/Common/LTFConfig.php
View file @
5e6d05c
...
@@ -53,6 +53,8 @@ final class LTFConfig extends ConfigInterface{
...
@@ -53,6 +53,8 @@ final class LTFConfig extends ConfigInterface{
public
$privateKey
;
//私钥
public
$privateKey
;
//私钥
public
$key
;
//私钥
/**
/**
* FuConfig constructor.
* FuConfig constructor.
* @param array $config
* @param array $config
...
@@ -90,6 +92,8 @@ final class LTFConfig extends ConfigInterface{
...
@@ -90,6 +92,8 @@ final class LTFConfig extends ConfigInterface{
if
(
key_exists
(
'channel'
,
$config
)
&&
!
empty
(
$config
[
'channel'
]))
$this
->
payChannel
=
$config
[
'channel'
];
if
(
key_exists
(
'channel'
,
$config
)
&&
!
empty
(
$config
[
'channel'
]))
$this
->
payChannel
=
$config
[
'channel'
];
if
(
key_exists
(
'key'
,
$config
)
&&
!
empty
(
$config
[
'key'
]))
$this
->
key
=
$config
[
'key'
];
if
(
key_exists
(
'notify_url'
,
$config
)
&&
!
empty
(
$config
[
'notify_url'
]))
$this
->
notifyUrl
=
$config
[
'notify_url'
];
if
(
key_exists
(
'notify_url'
,
$config
)
&&
!
empty
(
$config
[
'notify_url'
]))
$this
->
notifyUrl
=
$config
[
'notify_url'
];
...
...
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