Commit cd91f533 by doszhang

dos

parent fa448c38
...@@ -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'] )
......
...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment