Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uc_card
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
uc_card
Commits
94f7c205
Commit
94f7c205
authored
Jun 10, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回归测试
parent
0eb017b1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
4 deletions
+47
-4
src/app/Http/Controllers/Card/CardController.php
src/app/Http/Controllers/Card/CardController.php
+11
-2
src/app/Http/Controllers/HomeController.php
src/app/Http/Controllers/HomeController.php
+6
-0
src/app/Services/UtilService.php
src/app/Services/UtilService.php
+0
-1
src/resources/views/404.blade.php
src/resources/views/404.blade.php
+28
-0
src/resources/views/404.html
src/resources/views/404.html
+1
-1
src/routes/web.php
src/routes/web.php
+1
-0
No files found.
src/app/Http/Controllers/Card/CardController.php
View file @
94f7c205
...
...
@@ -342,7 +342,10 @@ class CardController extends Controller
$roleId
=
$request
->
input
(
'roleId'
);
$serverId
=
$request
->
input
(
'serverId'
);
if
(
Cache
::
has
(
'card:num:'
.
$userId
.
':'
.
$roleId
))
return
exit
(
'页面走丢了,请稍后再试!'
);
if
(
Cache
::
has
(
'card:num:'
.
$userId
.
':'
.
$roleId
)){
$num
=
Cache
::
get
(
'card:num:'
.
$userId
.
':'
.
$roleId
);
if
(
$num
>
3
)
return
exit
(
'页面走丢了,请稍后再试!'
);
}
if
(
Cache
::
has
(
'card:info:'
.
$userId
.
':'
.
$roleId
)){
$data
=
Cache
::
get
(
'card:info:'
.
$userId
.
':'
.
$roleId
);
...
...
@@ -460,7 +463,13 @@ class CardController extends Controller
Cache
::
put
(
'card:info:'
.
$userId
.
':'
.
$roleId
,
300
,
$data
);
}
Cache
::
put
(
'card:num:'
.
$userId
.
':'
.
$roleId
,
1
,
5
);
if
(
Cache
::
has
(
'card:num:'
.
$userId
.
':'
.
$roleId
)){
$num
=
Cache
::
get
(
'card:num:'
.
$userId
.
':'
.
$roleId
)
+
1
;
Cache
::
forget
(
'card:num:'
.
$userId
.
':'
.
$roleId
);
Cache
::
put
(
'card:num:'
.
$userId
.
':'
.
$roleId
,
$num
,
3
);
}
else
{
Cache
::
put
(
'card:num:'
.
$userId
.
':'
.
$roleId
,
1
,
3
);
}
return
view
(
'card.card'
,
$data
);
}
}
\ No newline at end of file
src/app/Http/Controllers/HomeController.php
View file @
94f7c205
...
...
@@ -27,4 +27,10 @@ class HomeController extends Controller
$data
=
[];
return
view
(
'index'
,
$data
);
}
public
function
getError
()
{
$data
=
[];
return
view
(
'404'
,
$data
);
}
}
\ No newline at end of file
src/app/Services/UtilService.php
View file @
94f7c205
...
...
@@ -194,7 +194,6 @@ class UtilService
public
static
function
getIsWx
(
$httpUserAgent
)
{
return
true
;
if
(
strpos
(
$httpUserAgent
,
'MicroMessenger'
)
!==
false
)
{
return
true
;
}
else
{
...
...
src/resources/views/404.blade.php
0 → 100644
View file @
94f7c205
<!doctype html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<title>
404
</title>
<style>
.no-found
{
text-align
:
center
;
font-size
:
12px
;
color
:
#333
;
}
.no-found
img
{
width
:
120px
;
display
:
block
;
margin
:
100px
auto
12px
;
}
</style>
</head>
<body>
<div
class=
"no-found"
>
<img
src=
"https://aldzn-ios-cdn.aldzn.cn/ucCard/postcard/images/404.png"
alt=
""
>
<span>
页面走丢了。。。
</span>
</div>
</body>
</html>
\ No newline at end of file
src/resources/views/404.html
View file @
94f7c205
...
...
@@ -21,7 +21,7 @@
</head>
<body>
<div
class=
"no-found"
>
<img
src=
"
../../public/static
/postcard/images/404.png"
alt=
""
>
<img
src=
"
https://aldzn-ios-cdn.aldzn.cn/ucCard
/postcard/images/404.png"
alt=
""
>
<span>
页面走丢了。。。
</span>
</div>
</body>
...
...
src/routes/web.php
View file @
94f7c205
...
...
@@ -11,6 +11,7 @@
|
*/
Route
::
any
(
'/wx/home'
,
'HomeController@getIndex'
)
->
name
(
'wxIndex'
);
Route
::
any
(
'/404'
,
'HomeController@getError'
);
Route
::
prefix
(
'service'
)
->
group
(
function
()
{
Route
::
post
(
'/get_authcode'
,
'ToolController@authcode'
);
...
...
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