Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Easy Http SDK
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Back End
Easy Http SDK
Commits
e4d0a1a3
Commit
e4d0a1a3
authored
Mar 06, 2023
by
谢宇轩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 调整RequestID Middleware
parent
d62dd571
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
RequestIDMiddleware.php
src/Middleware/RequestIDMiddleware.php
+3
-3
No files found.
src/Middleware/RequestIDMiddleware.php
View file @
e4d0a1a3
...
@@ -12,11 +12,11 @@ class RequestIDMiddleware implements MiddlewareInterface
...
@@ -12,11 +12,11 @@ class RequestIDMiddleware implements MiddlewareInterface
protected
$uuid
;
protected
$uuid
;
/**
/**
* @param string
|null
$uuid
* @param string $uuid
*/
*/
public
function
__construct
(
string
$uuid
=
null
)
public
function
__construct
(
string
$uuid
=
""
)
{
{
if
(
!
$uuid
)
{
if
(
empty
(
$uuid
)
)
{
$uuid
=
sprintf
(
'%04x%04x'
,
mt_rand
(
0
,
0xffff
),
mt_rand
(
0
,
0xffff
));
$uuid
=
sprintf
(
'%04x%04x'
,
mt_rand
(
0
,
0xffff
),
mt_rand
(
0
,
0xffff
));
}
}
$this
->
uuid
=
$uuid
;
$this
->
uuid
=
$uuid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment