<?php require_once "jssdk.php"; $jssdk = new JSSDK("wx0fed524d0dbafd1e", "b3fca70bef3775f844f3597bb09a2e9d"); $signPackage = $jssdk->GetSignPackage(); $api_ticket = $jssdk->GetCardApiticket(); $timestamp = $signPackage["timestamp"]; $nonce_str = $signPackage["nonceStr"]; $input = array("pzO-Ujm3KC3edMEbR6ziHYd5iRGs", "pzO-Ujt78kJxomc_KgRmbYTuMxLA", "pzO-UjmMjTYkFwOkq3gTMJaOQ0Kc", "pzO-Ujg196H9psKF48t44d3rwM4c", "pzO-Uju1BzG7Xk38egCSH4zi4SXo", "pzO-Ujlc0AOjSGaAX1_4z44d_YCc", "pzO-Ujr6SzYzrYWkBPbriumqJBhY", "pzO-Ujoj4EFjcJNYzGRy6rPqPs80"); $index = rand(0, count($input) - 1); $card_id = $input[$index]; $array = array("{$api_ticket}", "{$timestamp}", "{$nonce_str}", "{$card_id}"); asort($array); $new = implode('', $array); $ticketsignature = sha1($new); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>平潭冠超市摇一摇领代金券活动开始啦</title> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"> <meta content="yes" name="apple-mobile-web-app-capable"> <meta content="black" name="apple-mobile-web-app-status-bar-style"> <meta name="format-detection" content="telephone=no"> <link rel="stylesheet" href="css/style.css"> <link href="images/members_wap.css" rel="stylesheet" type="text/css" /> <link href="images/animate.min.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="css/master_csf.css" media="screen" title="no title" charset="utf-8">