Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
citic-mdrt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cd91f533
authored
Apr 21, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
fa448c38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
Application/Home/Controller/IndexController.class.php
+6
-6
Public/static/js/common.js
+4
-5
No files found.
Application/Home/Controller/IndexController.class.php
View file @
cd91f533
...
@@ -23,12 +23,12 @@ class IndexController extends Controller
...
@@ -23,12 +23,12 @@ class IndexController extends Controller
}
}
public
function
getInfo
(){
public
function
getInfo
(){
$this
->
ajaxReturn
(
array
(
//
$this->ajaxReturn(array(
'status'
=>
1
,
//
'status' => 1,
'poster'
=>
1
,
//
'poster' => 1,
'msg'
=>
'查询成功'
,
//
'msg' => '查询成功',
'step'
=>
1
//
'step' => 1
));
//
));
$referer
=
$_SERVER
[
'HTTP_REFERER'
];
$referer
=
$_SERVER
[
'HTTP_REFERER'
];
$refererInfo
=
parse_url
(
$referer
);
$refererInfo
=
parse_url
(
$referer
);
if
(
$refererInfo
[
'host'
]
!=
$_SERVER
[
'HTTP_HOST'
]
)
if
(
$refererInfo
[
'host'
]
!=
$_SERVER
[
'HTTP_HOST'
]
)
...
...
Public/static/js/common.js
View file @
cd91f533
...
@@ -305,13 +305,12 @@ function createPoster() {
...
@@ -305,13 +305,12 @@ function createPoster() {
var
posterObj
=
new
Image
();
var
posterObj
=
new
Image
();
posterObj
.
src
=
'/Public/static/image2/poster'
+
level
+
'.png'
;
posterObj
.
src
=
'/Public/static/image2/poster'
+
level
+
'.png'
;
posterObj
.
onload
=
function
()
{
posterObj
.
onload
=
function
()
{
posterCtx
.
drawImage
(
posterObj
,
0
,
0
,
posterCanvas
.
width
,
posterCanvas
.
height
);
$
(
'#notification_area'
).
remove
();
$
(
'.upload-page'
).
hide
();
$
(
'.poster-page'
).
show
();
txtDraw
(
posterCtx
,
username
,
'#fff'
,
531
*
2
,
472
*
2
,
45
*
2
);
txtDraw
(
posterCtx
,
username
,
'#fff'
,
531
*
2
,
472
*
2
,
45
*
2
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
posterCtx
.
drawImage
(
posterObj
,
0
,
0
,
posterCanvas
.
width
,
posterCanvas
.
height
);
$
(
'#notification_area'
).
remove
();
$
(
'.upload-page'
).
hide
();
$
(
'.poster-page'
).
show
();
$
(
'.username'
).
text
(
username
);
$
(
'.username'
).
text
(
username
);
$
(
'.show-img'
).
append
(
'<img class="showimg" />'
);
$
(
'.show-img'
).
append
(
'<img class="showimg" />'
);
$
(
'.showimg'
).
attr
(
'src'
,
getManBase64
(
uploadCanvas
));
$
(
'.showimg'
).
attr
(
'src'
,
getManBase64
(
uploadCanvas
));
...
...
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