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 ec821ad6
authored
Jan 31, 2023
by
丁铜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微诺付参数增加timestamp
1 parent
79f04d3b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
src/Common/WNFpay/WNFBaseData.php
src/Common/WNFpay/WNFBaseData.php
View file @
ec821ad
...
...
@@ -9,6 +9,7 @@ abstract class WNFBaseData extends BaseData
protected
function
makeSign
(
$signStr
){
list
(
$microsecond
,
$time
)
=
explode
(
' '
,
microtime
());
//' '中间是一个空格
$timestamp
=
(
float
)
sprintf
(
'%.0f'
,(
floatval
(
$microsecond
)
+
floatval
(
$time
))
*
1000
);
$this
->
retData
[
'timestamp'
]
=
$timestamp
;
$this
->
retData
[
'sign'
]
=
$sign
=
md5
(
md5
(
$this
->
key
.
$timestamp
)
.
md5
(
$timestamp
));
return
$sign
;
}
...
...
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