</div> <!--登录的错误信息结束--> <form action="" method="post" id="frm" name="frm"> <input type="hidden" name="action" value="user_login"> <input type="hidden" id="remember" name="remember" value="1"> <div class="field username-field"> <label for="TPL_username_1"> <i class="iconfont" title="会员名"></i></label> <input type="text" id="username" name="username" placeholder="请输入登录名" class="login-text J_UserName" value="<?php echo simple_decode($_COOKIE["voice_login_uname"]); ?> " maxlength="32" tabindex="1" /> </div> <div class="field pwd-field"> <label id="password-label" for="TPL_password_1"><i class="icon iconfont" title="登录密码"></i></label> <span id="J_StandardPwd"> <input type="password" id="password" name="password" aria-labelledby="password-label" value="<?php echo simple_decode($_COOKIE["voice_login_pwd"]); ?> " placeholder="请输入密码" class="login-text" maxlength="28" tabindex="2" /> </span> <span id="J_PasswordEdit" class="password-edit" style="display:none;"></span> <strong id="J_CapsLockTip" class="warning-tip" style="display:none;">Caps Lock键正处于启用状态,<br />启用它可能导致密码输入错误。</strong> </div> <div class="field"> <input type="checkbox" style="width:15px; height:15px; margin:0;" id="rememberMe" <?php echo $remember_chk; ?> /> <label for="rememberMe" style="display:inline;background:none;color:#000; width:50px; height:20px; line-height:20px; position:relative;">记住登录</label> </div> <div class="field field-checkcode hidden" id="l_f_code"> <span class="ph-label">验证码</span> <input id="J_CodeInput_i" type="text" class="login-text checkcode J_CheckCode" maxlength="4" name="TPL_checkcode" tabindex="3" /> <img id="J_StandardCode_m" src="https://assets.alicdn.com/apps/login/static/img/blank.gif" data-src="" class="check-code-img" />
</div> <!--登录的错误信息结束--> <form action="" method="post" id="frm" name="frm"> <input type="hidden" name="action" value="user_login"> <input type="hidden" id="remember" name="remember" value="1"> <div class="field username-field"> <label for="TPL_username_1"> <i class="iconfont" title="会员名"></i></label> <input type="text" id="username" name="username" placeholder="请输入登录名" class="login-text J_UserName" value="<?php echo simple_decode($_COOKIE["canteen_login_uname"]); ?> " maxlength="32" tabindex="1" /> </div> <div class="field pwd-field"> <label id="password-label" for="TPL_password_1"><i class="icon iconfont" title="登录密码"></i></label> <span id="J_StandardPwd"> <input type="password" id="password" name="password" aria-labelledby="password-label" value="<?php echo simple_decode($_COOKIE["canteen_login_pwd"]); ?> " placeholder="请输入密码" class="login-text" maxlength="28" tabindex="2" /> </span> <span id="J_PasswordEdit" class="password-edit" style="display:none;"></span> <strong id="J_CapsLockTip" class="warning-tip" style="display:none;">Caps Lock键正处于启用状态,<br />启用它可能导致密码输入错误。</strong> </div> <div class="field"> <input type="checkbox" style="width:15px; height:15px; margin:0;" id="rememberMe" <?php echo $remember_chk; ?> /> <label for="rememberMe" style="display:inline;background:none;color:#000; width:50px; height:20px; line-height:20px; position:relative;">记住登录</label> </div> <div class="field field-checkcode hidden" id="l_f_code"> <span class="ph-label">验证码</span> <input id="J_CodeInput_i" type="text" class="login-text checkcode J_CheckCode" maxlength="4" name="TPL_checkcode" tabindex="3" /> <img id="J_StandardCode_m" src="https://assets.alicdn.com/apps/login/static/img/blank.gif" data-src="" class="check-code-img" />
//根据用户编号和车辆编号生成带场景值二维码,格式:uids-cids $uids = num2str(CFG_ID_USER, $_SESSION["uid"]); $cids = num2str(CFG_ID_CAR, $_SESSION["cid"]); $token = db_get_token_ticket(CFG_APPID, CFG_SECRET)["token"]; $url = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token={$token}"; $json_data = '{"action_name": "QR_LIMIT_STR_SCENE", "action_info": {"scene": {"scene_str":"' . $uids . '-' . $cids . '"}}}'; $data = json_decode(get_http_result($url, $json_data), true); //插入数据库,更新车辆二维码信息 $params = array(array(intval($_SESSION["cid"]), SQLSRV_PARAM_IN), array("" . $data["ticket"], SQLSRV_PARAM_IN)); sp_execute("{call web_set_car_verify(?,?)}", $params); $verticket = $data["ticket"]; } } //被分享用户点开分享链接 if (isset($_REQUEST["carnum"])) { $_SESSION["carnum"] = simple_decode($_REQUEST["carnum"], CFG_CAR_ED_KEY); $verticket = $_REQUEST["verticket"]; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no"> <title><?php echo $_SESSION["carnum"]; ?> </title> <link rel="icon" href="../images/favicon.ico" type="image/x-icon"> <link href="css/style.css?v=16" rel="stylesheet" type="text/css"> <script src="../js/jquery-1.11.1.min.js"></script>