allen 3 anni fa
parent
commit
5bcdf9c72d
2 ha cambiato i file con 2 aggiunte e 749 eliminazioni
  1. 2 2
      app/index/controller/Video.php
  2. 0 747
      public/index.html

+ 2 - 2
app/index/controller/Video.php

@@ -21,8 +21,8 @@ class Video extends Controller
         } else {
             $isWebo = 0;
             // 只在调试模式下开启从POST参数中获取UID,方便测试联调
-            if (env('app_debug')) {
-                $sub = Request::get('cookie');
+            if (env('weibo.mock')) {
+                $sub = Request::get('cookie', "")?:'testcookie';
             }
         }
         $this->assign('sub', $sub);

+ 0 - 747
public/index.html

@@ -1,747 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-
-<head>
-    <meta charset="utf-8">
-    <meta http-equiv="Access-Control-Allow-Origin" content="*">
-    <title>    </title>
-    <meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
-    <meta name="apple-mobile-web-app-capable" content="yes" />
-    <meta name="full-screen" content="true" />
-    <meta name="screen-orientation" content="portrait" />
-    <meta name="x5-fullscreen" content="true" />
-    <meta name="360-fullscreen" content="true" />
-  <style>
-        html, body {
-            -ms-touch-action: none;
-            background:transparent;
-            padding: 0;
-            border: 0;
-            margin: 0;
-        }
-        input,button,select,textarea{outline:none;background-color: transparent; border: 0;}
-        *{
-            -webkit-tap-highlight-color: rgba(0,0,0,0);
-            -webkit-tap-highlight-color:transparent;
-        }
-        img,div{
-            -webkit-tap-highlight-color: rgba(0,0,0,0);
-            -webkit-tap-highlight-color:transparent;
-            -webkit-user-select:none; /*webkit浏览器*/
-            -moz-user-select:none;/*火狐*/
-            -ms-user-select:none; /*IE10*/
-            user-select:none;
-        }
-        input{
-            -webkit-appearance: none;
-            -webkit-tap-highlight-color: rgba(0,0,0,0);
-        }
-        .box{
-            width: 100%;
-            height: 100%;
-            text-align:center;
-        }
-        .doScale{
-            -webkit-animation:zscale 1.2s linear infinite ;
-        }
-        @-webkit-keyframes zscale
-        {
-            0%{ transform: scale(1)  }
-            50%{ transform: scale(1.1) }
-            100%{ transform: scale(1) }
-        }
-    </style>
-</head>
-    <script src="js/jquery.min.js"></script>
-    <!--<script src="js/createjs.min.js"></script>-->
-    <script src="layer/layer.js"></script>
-    <script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
-
-<body>
-
-    <div id="bgDIV" class="box" style="position:fixed; top: 0;left: 0;width: 100%;  ">
-        <img src="img/aloadingBg.jpg" style=" position: relative;  width: 100%;  top: 50%;   left: 50%;   transform: translate(-50%,-50%);">
-    </div>
-
-    <div id="bgDIV2" style="position:fixed; top: 0;left: 0;width: 100%; text-align: center;  display: none; ">
-        <div >
-            <img src="img/aloading.gif" style=" position: relative;  width: 30%;   ">
-        </div>
-        <div style="margin-top: 4em;">
-           <img src="img/aloadingTxt.png" style=" position: relative;  width: 30%; ">
-        </div>
-    </div>
-
-    <audio preload="preload"  id="wx_call" src="wx.mp3" loop></audio>
-    <audio preload="preload"  id="wx_sound" src="" ></audio>
-
-    <div style="margin: auto;width: 100%;height: 100%;" class="egret-player"
-         data-entry-class="Main"
-         data-orientation="portrait"
-         data-scale-mode="fixedWidth"
-         data-frame-rate="60"
-         data-content-width="750"
-         data-content-height="1600"
-         data-multi-fingered="2"
-         data-show-fps="false" data-show-log="false"
-         data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
-    </div>
-
-    <div id="tipDIV" class="box" style="position:fixed; top: 0;left: 0;width: 100%; display: none;  ">
-        <img id="tipImg" src="" style=" position: relative;  width: 100%;  top: 50%;   left: 50%;   transform: translate(-50%,-50%);">
-        <img id="sendWeiboBtn" src="img/shareBtn.gif" style="position: absolute; top:50%; left: 25%; width: 50%; display: none" >
-    </div>
-
-    <div id="canvasDIV" style=" vertical-align: middle;  text-align: center;  position: absolute;  width: 100%; height: 100%; top:0px;left:0px; display: none; ">
-        <canvas id="canvas" style=" margin-top: 30% " width="750" height="1465" ></canvas>
-    </div>
-
-    <div id="imgDIV" style=" opacity: 0.01; background-color: #FFFFFF; text-align: center; vertical-align: middle; position: absolute; width: 100%; height: 70%; top:0px; left:0px; display: none">
-        <img id="theImg" style="margin-top: 0% ; width:100%;  "  >
-    </div>
-
-    <div id="btnsDIV" style="position: absolute; width: 100%; text-align: center; display:none ;    ">
-        <div id="shareBtn" style=" width: 40%; margin-right: 0.5em; display: inline-block">
-            <img src="img/shareBtn.gif" style="width: 100%">
-        </div>
-
-        <div id="linkBtn" style="width: 33%; margin-left: 0.5em; display: inline-block;">
-            <img src="img/linkBtn.png" style="width: 100%">
-        </div>
-    </div>
-
-    <div style="position: fixed; left: 0px; top: 0px; width: 10% ; margin-top: 15px  ;margin-left: 90% ; z-index: 999 ; display: block; ">
-        <img id="soundBtn" src="bm_1.gif" style="width: 70%">
-    </div>
-
-    <script src="js/eruda.min.js"></script>
-    <script>               eruda.init();          </script>
-
-<script>
-    var loadScript = function (list, callback) {
-        var loaded = 0;
-        var loadNext = function () {
-            loadSingleScript(list[loaded], function () {
-                loaded++;
-                if (loaded >= list.length) {
-                    callback();
-                }
-                else {
-                    loadNext();
-                }
-            })
-        };
-        loadNext();
-    };
-
-    var loadSingleScript = function (src, callback) {
-        var s = document.createElement('script');
-        s.async = false;
-        s.src = src;
-        s.addEventListener('load', function () {
-            s.parentNode.removeChild(s);
-            s.removeEventListener('load', arguments.callee, false);
-            callback();
-        }, false);
-        document.body.appendChild(s);
-    };
-
-    var data = `{  "initial": [ "js/all.min.js" ],
-        "game": [  "js/default.thm.js?v=6" , "js/main.min.js?v=6"  ]
-    }`;
-    var manifest = JSON.parse(data);
-    var list = manifest.initial.concat(manifest.game);
-    loadScript(list, function () {
-
-        var theRenderMode = "webgl";
-
-
-        egret.runEgret({ renderMode: theRenderMode , audioType: 0, calculateCanvasScaleFactor:function(context) {
-            var backingStore = context.backingStorePixelRatio ||
-                context.webkitBackingStorePixelRatio ||
-                context.mozBackingStorePixelRatio ||
-                context.msBackingStorePixelRatio ||
-                context.oBackingStorePixelRatio ||
-                context.backingStorePixelRatio || 1;
-            return (window.devicePixelRatio || 1) / backingStore;
-        }});
-
-        egret.ImageLoader.crossOrigin = "anonymous";
-    });
-</script>
-<script>
-    // 获取参数
-    function getPara(_key) {
-        var reg = new RegExp("(^|&)" + _key + "=([^&]*)(&|$)");
-        var r = window.location.search.substr(1).match(reg);
-        if (r != null) return unescape(r[2]);
-        return null;
-    }
-
-    //获取cookie
-    function getCookie(cname) {
-        var name = cname + "=";
-        var ca = document.cookie.split(';');
-        for (var i = 0; i < ca.length; i++) {
-            var c = ca[i].trim();
-            if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
-        }
-        return "";
-    }
-
-    // 微博端判断
-    var isWeibo = false;
-    var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
-    // if(window.location.host == 'local.sina.com'){
-    //     // 模拟本地微博端
-    //     isWeibo = true;
-    //     sub = getPara('sub');
-    // }else{
-    //      if (ua.match(/WeiBo/i) == "weibo") {
-    //         isWeibo = true;
-    //     } else {
-    //         showMessage('请使用微博客户端打开');
-    //         // onOpen();
-    //     }
-    // }
-
-    isWeibo = true;
-    sub = getPara('sub');
-    console.log("isWeibo = " + isWeibo)
-
-    var sub = '';
-
-    if(isWeibo){
-        // 微博端
-        sub = getCookie('SUB') || getCookie('sub');
-
-        if(window.location.host == 'local.sina.com'){
-            sub = getPara('sub');
-        }
-    }else{
-        sub = getPara('sub');
-    }
-    console.log('sub = ' + sub)
-
-    // uid
-    if (sub=='' && isWeibo) {
-        console.log('noLogin.....')
-        noLogin();
-    }
-
-
-    //未登录状态下跳转 scheme:
-    function noLogin() {
-        window.location.href = `sinaweibo://login?redirect_scheme=${(encodeURIComponent(location.href))} `;
-    }
-
-    function onOpen(url) {
-        let scheme;
-        if (!url) {
-            url = location.href; // 要打开的 H5 页面的地址
-            scheme = `sinaweibo://browser?url=${encodeURIComponent(url)}`;
-        } else {
-            if (url.search('http') != -1) {
-                scheme = `sinaweibo://browser?url=${encodeURIComponent(url)}`;
-            } else {
-                scheme = url;
-            }
-        }
-        console.log('打开链接:', scheme);
-
-        if (isWeibo) {
-            window.location.href = scheme;
-        } else {
-            window.location.href = `https://m.weibo.cn/feature/openapp?scheme=${encodeURIComponent(scheme)}`;
-        }
-
-    }
-
-    // 关于微博 ======== END
-
-    function getQueryString(name) {
-        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
-        var r = window.location.search.substr(1).match(reg);
-        if (r != null) {
-            return (r[2]);
-        } else {
-            return null;
-        }
-    }
-
-
-
-    var openid = getQueryString('openid');
-    // 定义变量
-    var secNum = 120;
-    var totalNum = 120;
-	var stayTime = 1500;
-
-
-    var version = 6;
-    var isShare = 0;
-    var theTokenData = '';
-
-    var YUMING = 'https://video.shuncheng.lu/';
-
-
-    // 登录接口
-
-    function checkLogin(backFun){
-        if(window.location.host == 'active.songjiang.xyz' || window.location.host == 'local.sina.com'){
-             sub = getPara('sub');
-        }
-
-        console.log("sub = " + sub)
-
-        var u = YUMING + 'index/index/checkLogin'
-        var obj = {cookie:sub};
-        $.post(u,obj,function(data){
-
-            console.log(data)
-
-            if(data.code == 0){
-                // 调用成功
-
-                theTokenData = data.data.token;
-                playCount = data.data.count;
-                isShare = data.data.isShare;
-                isBeginActivity = data.data.isBeginActivity; //活动是否开始
-                Main.userInfo = data.data.user;
-                if(data.data.task.length == 0){
-                    TestPage.getDanNum = 0;
-                }else{
-                    TestPage.getDanNum = data.data.task.num;
-                }
-                console.log("Main.userInfo = " )
-                console.log( Main.userInfo )
-
-                // playCount = 1; // Test...........
-                if(playCount == 1){
-                    // 玩过一次
-                    if( isShare == 0 ){
-                        // 未分享
-                        $('#sendWeiboBtn').show();
-                        $('#tipDIV').show();
-                        $('#tipImg').attr('src' , 'img/tip01.jpg');
-                    }else{
-                        // 已分享
-                        $('#shareBtn').hide();
-                    }
-                }else if(playCount == 2){
-                    $('#sendWeiboBtn').hide();
-                    $('#tipDIV').show();
-                    $('#tipImg').attr('src' , 'img/tip02.jpg');
-                }else{
-                    console.log("playCount = " + playCount )
-                }
-
-                backFun();
-            }else{
-                console.log('------ checkLogin' + data.message)
-            }
-        })
-
-    }
-
-    // 校验是否可以参加游戏接口
-    function checkRole(backFun){
-        var u = YUMING + 'index/index/checkRole'
-
-        var obj = {token:theTokenData};
-        $.post(u,obj,function(data){
-            if(window.location.host == 'local.sina.com'){
-
-            }
-            console.log(data)
-
-            if(data.code == 0){
-                // 调用成功
-                Main.canPlay = data.data.first;
-
-                backFun();
-
-            }else{
-                console.log('------ checkRole' + data.message)
-            }
-        })
-    }
-    // 提交任务接口
-    function submitTask(timeNum, danNum , backFun){
-        var u = YUMING + 'index/index/submitTask'
-
-        var obj = {token:theTokenData , duration:timeNum , number:danNum };
-        $.post(u,obj,function(data){
-            if(window.location.host == 'local.sina.com'){
-
-            }
-            console.log(data)
-            if(data.code == 0){
-                // 提交成功
-                // showMessage("提交成功")
-                backFun();
-            }else{
-                console.log('------ submitTask error' + data.message)
-            }
-        })
-    }
-    // 提交发送微博接口
-    function submitShare(  ){
-        var u = YUMING + 'index/index/submitShare'
-
-        var obj = { token:theTokenData };
-        $.post(u,obj,function(data){
-            if(window.location.host == 'local.sina.com'){
-
-            }
-            console.log(data)
-            if(data.code == 0){
-                // 提交成功
-                showMessage("提交成功")
-
-            }else{
-                console.log('------ submitShare error : ' + data.message)
-            }
-        })
-    }
-    // 排行分数
-    function getRankTop( backFun ){
-        var u = YUMING + 'index/index/topRanking'
-        var obj = { token:theTokenData };
-        $.post(u,obj,function(data){
-
-            if(data.code == 0){
-                console.log(data.data)
-                backFun(data.data);       //self ranking
-            }else{
-                console.log('------ ranking error :' + data.message)
-            }
-        })
-    }
-    // 排行最新
-    function getRankNew( backFun ){
-        var u = YUMING + 'index/index/newRanking'
-        var obj = { token:theTokenData };
-        $.post(u,obj,function(data){
-
-
-            if(data.code == 0){
-                backFun(data.data);       //self ranking
-            }else{
-                console.log('------ newRanking error' + data.message)
-            }
-        })
-    }
-    // 提交领取信息接口
-    function submitReceive( uName , uTel , uAdd , giftId , typeId ,  backFun ){
-        // token 登录凭证 name 姓名、mobile 手机号、address 地址、 giftId 奖品ID、 type 类型:1  中奖  2 排名
-        var u = YUMING + 'index/index/submitReceive'
-        var obj = { token:theTokenData , name:uName , mobile:uTel, address:uAdd , giftId:giftId , type:typeId };
-        $.post(u,obj,function(data){
-            if(data.code == 0){
-                backFun(data.data);       //self ranking
-            }else{
-                console.log('------ submitReceive error' + data.message)
-            }
-        })
-    }
-    //获取轮播中奖接口
-    function getRotationAward(  backFun ){
-        var u = YUMING + 'index/index/getRotationAward'
-        var obj = { token:theTokenData };
-        $.post(u,obj,function(data){
-            if(data.code == 0){
-                backFun(data.data);
-            // "nickname": "用户7771259896",
-            // "portrait": "https://tvax1.sinaimg.cn/default/images/default_avatar_female_180.gif?KID=imgbed,tva&Expires=1657047644&ssig=rLOkyZc0Iy",
-            // "uid": 7771259896,
-            // "giftName": "奖品A"
-
-            }else{
-                console.log('------ getRotationAward error' + data.message)
-            }
-        })
-    }
-
-    // 用户点击查看奖品, 排名中奖接口,前 50
-    function getRankingWinAward(  backFun ){
-        var u = YUMING + 'index/index/getRankingWinAward'
-        var obj = { token:theTokenData };
-        $.post(u,obj,function(data){
-            if(data.code == 0){
-                backFun(data.data);
-
-            }else{
-                console.log('------ getRankingWinAward error' + data.message)
-            }
-        })
-    }
-
-
-
-    // 抽奖接口
-    function getLuckDraw(  backFun ){
-        var u = YUMING + 'index/index/getLuckDraw'
-        var obj = { token:theTokenData };
-        $.post(u,obj,function(data){
-            if(data.code == 0){
-                backFun(data.data);
-            // "isWinAward": 0, // 是否中奖  0  末中奖   1 中奖
-            // "giftId": 0 // 奖品ID
-
-            }else{
-                console.log('------ newRanking error ' + data.message)
-            }
-        })
-    }
-
-
-
-
-    // 中奖记录接口
-    function getAwardLog(  backFun ){
-        var u = YUMING + 'index/index/getAwardLog'
-        var obj = { token:theTokenData };
-        $.post(u,obj,function(data){
-            if(data.code == 0){
-                backFun(data.data);
-
-            // "giftId": 1,
-            // "giftName": "投影仪",
-            // "typeLabel": "抽奖",
-            // "type": 2,
-            // "createAt": "22-08-30 01:39:45"
-
-            }else{
-                console.log('------ getAwardLog error ' + data.message)
-            }
-        })
-    }
-
-
-
-
-    function showHaibao(){
-        $('#haibaoDIV').show();
-    }
-
-    function isWeiXin() {
-        var ua = window.navigator.userAgent.toLowerCase();
-        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
-            return true;
-        } else {
-            return false;
-        }
-    }
-
-    var isInWx = isWeiXin();
-    console.log('isInWx = ' + isInWx)
-
-
-    function setDivY(div, n) {
-        var yy = n / 750 * window.innerWidth;
-        document.getElementById(div).style.top = yy + "px";
-    }
-
-   function showMessage(str){
-        layer.msg( str ,{ time: 1500 }, function(){
-
-        });
-    }
-    function hideImgDIV(){
-        $('#btnsDIV').hide();
-        document.getElementById("imgDIV").style.display = "none";
-        document.getElementById('theImg').src = '';
-    }
-
-    function showBtnDIV(){
-        setDivY('btnsDIV' , 1330 + Main.hh)
-        $('#btnsDIV').show();
-    }
-
-    function hideBtnDIV(){
-        $('#imgDIV').hide();
-        $('#btnsDIV').hide();
-    }
-
-    function showBtnAndImg(){
-        $('#imgDIV').show();
-        $('#btnsDIV').show();
-    }
-
-
-
-
-    function makeWeiboSend(){
-
-        var sendArr = ['sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490hqn5gpj60ku0w878u02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490hqn5gpj60ku0w878u02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490hqn5gpj60ku0w878u02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490ig5jijj60ku0w842y02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490ig5jijj60ku0w842y02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490ig5jijj60ku0w842y02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490iuexffj60ku0w8djr02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490iuexffj60ku0w8djr02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490iuexffj60ku0w8djr02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490jb0dtzj60ku0w8q7a02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490jb0dtzj60ku0w8q7a02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490jb0dtzj60ku0w8q7a02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490jsnv74j60ku0w842o02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490jsnv74j60ku0w842o02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490jsnv74j60ku0w842o02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490k40kijj60ku0w8q7d02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490k40kijj60ku0w8q7d02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490k40kijj60ku0w8q7d02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490keoeotj60ku0w8n1d02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490keoeotj60ku0w8n1d02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490keoeotj60ku0w8n1d02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490kwod1tj60ku0w8wj502.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490kwod1tj60ku0w8wj502.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490kwod1tj60ku0w8wj502%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490l9c612j60ku0w8n1d02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2Fa002ckVKbly8h490l9c612j60ku0w8n1d02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490l9c612j60ku0w8n1d02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2F002ckVKbly8h490lp4gzxj60ku0w8ae902.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490lp4gzxj60ku0w8ae902.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490lp4gzxj60ku0w8ae902%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge002ckVKbly8h490lzpghhj60ku0w8dk302.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490lzpghhj60ku0w8dk302.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490lzpghhj60ku0w8dk302%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490mb9hjxj60ku0w8jvi02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490mb9hjxj60ku0w8jvi02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490mb9hjxj60ku0w8jvi02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490mmy6m2j60ku0w8aei02.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490mmy6m2j60ku0w8aei02.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490mmy6m2j60ku0w8aei02%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490mwyi2ej60ku0w8wj102.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490mwyi2ej60ku0w8wj102.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490mwyi2ej60ku0w8wj102%22%7D%5D',
-
-        'sinaweibo://sendweibo?content=&pics=%5B%7B%22thumbnail%22%3A%22https%3A%2F%2Fwx1.sinaimg.cn%2Flarge%2F002ckVKbly8h490nmi4cxj60ku0w8gq202.jpg%22%2C%22original%22%3A%22https%3A%2F%2Fwx4.sinaimg.cn%2Flarge%2F002ckVKbly8h490nmi4cxj60ku0w8gq202.jpg%22%2C%22pid%22%3A%22002ckVKbly8h490nmi4cxj60ku0w8gq202%22%7D%5D'];
-
-        var u = sendArr[TestPage.getDanNum - 1]
-        window.location.href = encodeURIComponent(u);
-    }
-
-    $('#sendWeiboBtn').click(function(){
-        submitShare();
-        setTimeout(function(){
-            makeWeiboSend()
-            $('#tipDIV').hide();
-        } , 200)
-    })
-
-    $('#shareBtn').click(function(){
-        submitShare();
-        if(window.location.host == 'local.sina.com'){
-
-        }else{
-             setTimeout(function(){
-                makeWeiboSend()
-            } , 200)
-        }
-
-        if(isShare == 0){
-
-            isShare = 1;
-            hideImgDIV();
-
-            MainGame.self.createTestPage();
-            MainGame.self.goBigMap();
-
-            setTimeout(function(){
-                MainGame.self.doRemoveEndPage();
-            } , 500)
-        }
-
-    })
-
-    $('#linkBtn').click(function(){
-        hideBtnDIV();
-        MainGame.self.showRankPage();
-    })
-
-    function showGIF(){
-        setDivY('bgDIV2' , 590 + Main.hh)
-        $('#bgDIV').show();
-        $('#bgDIV2').show();
-    }
-    function hideGIF(){
-        $('#bgDIV').hide();
-        $('#bgDIV2').hide();
-    }
-
-    $("input,select").blur(function(){
-        setTimeout(function(){
-            var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
-            window.scrollTo(0, Math.max(scrollHeight - 1, 0));
-        },100);
-    });
-</script>
-
- <!--音频控制-->
- <script>
-
-        document.addEventListener("WeixinJSBridgeReady", function () {
-            document.getElementById("wx_call").play();
-
-        }, false);
-
-        function playBgMusic(){
-            document.getElementById("wx_call").play();
-        }
-        function playSound(str){
-            document.getElementById(str).play();
-        }
-        function pauseSound(str){
-            document.getElementById(str).pause();
-        }
-
-        //--------处理音频
-        window.play_sound = 1;
-        function auPlay(){
-            console.log(" auPlay ");
-            document.getElementById('wx_call').play();
-         }
-        function auPause(){
-            console.log(" auPause ");
-            document.getElementById('wx_call').pause();
-        }
-
-        var angle = 0;
-        var canZhuan = true;
-        // setInterval(function(){
-        //     if(canZhuan){
-        //         angle +=3;
-        //         $('#soundBtn').rotate(angle);
-        //     }
-        // }, 30);
-
-        $("#soundBtn").click(function(){
-            if(play_sound == 0){play_sound = 1;auPlay();}
-            else{play_sound = 0; auPause();}
-
-            canZhuan = !canZhuan;
-        });
- </script>
-
-<!--生成海报-->
-<script>
-      function makeDivImg(base64){
-
-        // console.log(base64);
-        //------------------------ Canvas
-        var canvas = document.getElementById('canvas');
-        var context = canvas.getContext('2d');
-        context.fillStyle="#ffffff";
-        context.fillRect(0,0,canvas.width, canvas.height);
-
-        var img = new Image();
-        img.onload = function() {
-            context.drawImage(this, 0, 0, canvas.width*1, canvas.height*1);
-
-            // setDivY('btnsDIV', 1200+Main.hh);
-            // document.getElementById("btnsDIV").style.display = "";
-            document.getElementById("imgDIV").style.display = "";
-            document.getElementById('theImg').src = base64;
-
-            showBtnDIV();
-            EndPage.self.makeImgComplete();
-            // EndPage.endQr.visible = false;
-        };
-        img.src = ""+base64;
-
-    }
-</script>
-
-
-
-
-</body>
-
-</html>