-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
55 lines (55 loc) · 2.27 KB
/
index.php
1
<?phprequire_once "./JsSdk/jssdk.php";$jssdk = new JSSDK("wx8885c58b88f5fec6", "62defbd21ae50a9140297b0218c0619b");$signPackage = $jssdk->GetSignPackage();?><!DOCTYPE html><html lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> <meta name="format-detection" content="telephone=no"> <title>21天早起团队对抗赛</title> <script src="./js/jquery.min.js"></script> <script src="./js/jweixin-1.0.0.js"></script> <script type="text/javascript"> function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; }; function getParams(){// var userId = GetQueryString('user_id'); var roomId = GetQueryString('room_id'); var counterworkId = GetQueryString('counterwork_id'); var pass = GetQueryString('pass'); var code = GetQueryString('code'); var invitedUserId = GetQueryString('invited_user_id');// sessionStorage.setItem("userId", userId); sessionStorage.setItem("roomId", roomId); sessionStorage.setItem("counterworkId", counterworkId); sessionStorage.setItem("pass", pass); sessionStorage.setItem("code", code); sessionStorage.setItem("invitedUserId",invitedUserId); } getParams(); var appId = '<?php echo $signPackage["appId"];?>'; var timestamp = '<?php echo $signPackage["timestamp"];?>'; var nonceStr = '<?php echo $signPackage["nonceStr"];?>'; var signature = '<?php echo $signPackage["signature"];?>'; sessionStorage.setItem("appId", appId); sessionStorage.setItem("timestamp", timestamp); sessionStorage.setItem("nonceStr", nonceStr); sessionStorage.setItem("signature", signature); function jump(){ window.location.href = 'http://www.idothing.com/new21/#/' } setTimeout(function(){ jump(); },500) </script></head><body></body></html>