上一主题 下一主题
ScriptCat,新一代的脚本管理器脚本站,与全世界分享你的用户脚本油猴脚本开发指南教程目录
返回列表 发新帖

哪位哥哥可以帮看看为什么跳转错误?

[复制链接]
  • TA的每日心情
    开心
    2022-9-16 09:27
  • 签到天数: 1 天

    [LV.1]初来乍到

    5

    主题

    19

    回帖

    28

    积分

    助理工程师

    积分
    28
    发表于 2022-10-5 11:39:32 | 显示全部楼层 | 阅读模式
    悬赏2油猫币未解决

    // ==UserScript==
    // @name 华医网跳过人脸识别认证
    // @namespace http://tampermonkey.net/
    // @license MIT
    // @version 0.1
    // @description 华医人脸识别
    // @author You
    // @match http://*.91huayi.com/pages/exam_tip.aspx?cwrid=
    // @match http://
    .91huayi.com/course_ware/course_ware_cc_tip.aspx?cwrid=*
    // @grant none
    // ==/UserScript==

    (function() {
    'use strict';
    debugger;
    //查询用户是否认证
    queryIsAuth()
    function queryIsAuth() {
    //if (false) {
    //return false;
    //}
    //flag = true;
    $.ajax({
    url: "/ashx/get_user_auth.ashx",
    timeout: 10000 * 60, //超时时间 单位毫秒
    type: "POST",
    dataType: "json",
    data: {
    qrcode_id: qrCodeID,
    unit_no: "02",//二维码所属系统02
    cwrid: relation_id,
    r: Math.random()
    },
    async: true,
    success: function (data) {
    //console.log(data);
    data.code = 1
    if (data.code == 1) {//已认证
    //clearInterval(queryIsAuth);
    $("#sao_success").show();
    setTimeout(function () {
    //window.location.href = "exam.aspx?cwid=" + relation_id;
    //window.location.href = "course_ware_cc.aspx?cwid=" + relation_id + "&batchId=" + data.message;
    //window.location.href = "course_ware_test_cc.aspx?cwid=" + relation_id + "&batchId=" + data.message;
    window.location.href = "pages/exam.aspx?cwid=" + relation_id + "&batchId=" + data.message;
    }, 1000);
    } else if (data.code == 0) {//用户还未认证继续请求
    flag = false;
    } else if (data.code == 5) {//二维码id已过期,请刷新重新扫码
    //clearInterval(queryIsAuth);
    $("#sao_refresh").show();
    } else {
    //clearInterval(queryIsAuth);
    layer.alert(data.message, { offset: 't', icon: 3 });
    }
    },
    error: function (xhr, textStatus, errorThrown) {
    //clearInterval(queryIsAuth);
    layer.alert(textStatus, { offset: 't', icon: 2 });
    }
    });
    };
    //$("#sao_success").show(); //认证成功
    //window.location.href = "exam.aspx?cwid=" + relation_id;

    // Your code here...

    })();

  • TA的每日心情
    擦汗
    2024-7-16 09:20
  • 签到天数: 192 天

    [LV.7]常住居民III

    696

    主题

    5699

    回帖

    6555

    积分

    管理员

    非物质文化遗产社会摇传承人

    积分
    6555

    荣誉开发者管理员油中2周年生态建设者喜迎中秋

    发表于 2022-10-5 16:27:31 | 显示全部楼层
    这个没法帮看的
    只能靠一步一步调
    哥哥尝试debugger看看哪里出错了对着改就好了
    混的人。
    ------------------------------------------
    進撃!永遠の帝国の破壊虎---李恒道

    入驻了爱发电https://afdian.net/a/lihengdao666
    个人宣言:この世界で私に胜てる人とコードはまだ生まれていません。死ぬのが怖くなければ来てください。
    回复

    使用道具 举报

    发表回复

    本版积分规则

    快速回复 返回顶部 返回列表