Giter Site home page Giter Site logo

coderlengary / hospitalautoregister Goto Github PK

View Code? Open in Web Editor NEW

This project forked from necrodiver/hospitalautoregister

0.0 1.0 0.0 5.16 MB

北京大学口腔医院自动挂号

License: Apache License 2.0

JavaScript 90.60% HTML 0.11% Vue 0.85% Sass 0.37% SCSS 0.88% Go 7.19%

hospitalautoregister's Introduction

医院挂号使用教程

注意:本程序只供学习交流娱乐之用,由此产生任何纠纷由使用者自己承担!本人概不负责!侵删!另外,请求频次太高将会被封号,请注意设定好自己的请求频率,不要太高;

介绍:北京大学口腔医院,挂号

可自行拷贝本项目、配置或魔改,请勿用于盈利,本人概不负责

本项目开源,代码未整理,兴趣而写

公开源码,希望大家能点点Star,也能为我下一次迭代提供动力呀,别光fork啊老铁们🤣


关于代码:

  1. 本项目技术栈:golang, vue
    1.1 golang使用了gin框架作为本地站点服务器,otto插件运行js, req来模拟https请求接收真实数据 (go的各种好处,本人不会py);
    1.2 app文件夹内前端采用Vue3+vite+antd (个人练习选用);
  2. 重点文件:
    2.1 utils/js/wxutil.js : 此文件为核心文件,解包小程序获取源码魔改而成,wx对象为手动模拟,部分js高阶语法otto并不支持已降级修改,部分引用已整合,此文件非原始源码;
    2.2 utils/BusinessHelper.go : 外部模拟请求的所有必须接口;
    2.3 utils/EncryDecryHelper.go : 加解密,otto配合wxutils.js使用;
  3. 弃用文件(弃用文件均为第一版使用的,可自行删除,也可自行魔改):
    3.1 conf文件夹及其下配置文件;
    3.2 utils/INIHelper.go;
    3.3 GetUserData.go;

使用说明:

  1. 启用抓包工具,可以抓小程序的微信授权登录,调用接口https://bdkq.leanpay.cn/weixin-miniapp-bdkq@default/wechat/login.json的登录参数
    最重要的三个参数:

    Request请求的header:x-sign,接口返回加密串需要的解密key(动态的,每次请求都是随机加密的
    Response返回的header:x-version,接口请求url的拼接版本(动态的,一小段时间后就会改变
    Response返回的Body:{ encrypt": "XXXXXX" },这里的XXXXXX(这个就是加密串,用上边的x-sign来解密

  2. 启用“北京大学口腔医院医疗服务助手”(推荐直接在电脑端打开,使用抓包工具来抓登录的参数)
  3. 本地或者打包运行当前项目:

    3.1 初始化项目配置,go项目的初始化和内部app文件夹内的初始化
    3.2 app文件夹内项目打包(或者打包后运行),然后运行go项目
    3.3 项目代码已限制挂号频次至少为1000ms,可自行修改,封号本人概不负责

后续计划(不分优先级)

  1. 配置可视化,可选择就诊人和科室 ✅
  2. 接入本地抓包,不使用抓包工具,但本地需在pc端微信中登录授权
  3. 看看其他医院的情况

ps:此项目为本人兴趣练习使用,之前是抽空就写写,打工🐶,准备复习复习然后~,这段时间不准备更新了

hospitalautoregister's People

Contributors

necrodiver avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.