Commit cd91f533 by doszhang

dos

parent fa448c38
......@@ -23,12 +23,12 @@ class IndexController extends Controller
}
public function getInfo(){
$this->ajaxReturn(array(
'status' => 1,
'poster' => 1,
'msg' => '查询成功',
'step' => 1
));
// $this->ajaxReturn(array(
// 'status' => 1,
// 'poster' => 1,
// 'msg' => '查询成功',
// 'step' => 1
// ));
$referer = $_SERVER['HTTP_REFERER'];
$refererInfo = parse_url( $referer );
if( $refererInfo['host'] != $_SERVER['HTTP_HOST'] )
......
......@@ -305,13 +305,12 @@ function createPoster() {
var posterObj = new Image();
posterObj.src = '/Public/static/image2/poster' + level + '.png';
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);
setTimeout(function () {
posterCtx.drawImage(posterObj, 0, 0, posterCanvas.width, posterCanvas.height);
$('#notification_area').remove();
$('.upload-page').hide();
$('.poster-page').show();
$('.username').text(username);
$('.show-img').append('<img class="showimg" />');
$('.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