/HXHYT

Primary LanguageVue

HXHYYT

全部逻辑走的微信渠道,APP 渠道涉及密码加密无法处理。

  • 目前看 localStorage 存有token 和 cardList

获取token

  • 客户端版本微信打开华医通并且登陆
  • 设置switchHost 如下
127.0.0.1 hx5g.cd120.info
  • 启动获取token程序,将获取的信息复制出来,数据结构如下
{
    token:"",
    cardList:[
    {
      cardId:"",
      name:""
    }
  ]
}
  • 将token 和需要使用的cardId 填入到准备页面对应项
  • 选择医生
  • 确认预约信息
  • 开启自动预约

H5已知token 使用

使用此地址登陆后可以直接在网页使用
//https://hx5g.cd120.info/index.php?g=WapApi&m=WapApi&a=setLogin&gzh_type=2&openid=ocZagjrGdv4wpC-BAwREbyN_eU3s&token=eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzNTc5NTA0MTI2NjMyOTE5MDQyMzY1MTEzMjEyMzE0NDEiLCJpYXQiOjE2ODE5NTUyMTgsInN1YiI6IntcInVzZXJJZFwiOlwiMzU3OTUwNDEyNjYzMjkxOTA0XCIsXCJhY2NvdW50SWRcIjpcIjM1Nzk1MDQxMjY3MTY4MDUxMlwiLFwidXNlclR5cGVcIjowLFwiYXBwQ29kZVwiOlwiSFhHWUFQUFwiLFwiY2hhbm5lbENvZGVcIjpcIlBBVElFTlRfV0VDSEFUXCIsXCJkZXZpY2VudW1iZXJcIjpcIjIzNjUxMTMyMTIzMTQ0MVwiLFwiZGV2aWNlVHlwZVwiOlwiV1hfSDVcIixcImFjY291bnROb1wiOlwiMTg5ODAwNzAxMTVcIixcIm5hbWVcIjpcIuaYk-mbhFwiLFwiZG9jdG9ySWRcIjpudWxsLFwib3JnYW5Db2RlXCI6XCJISUQwMTAxXCJ9IiwiZXhwIjoxNjg0NTQ3MjE4fQ.UFoDMgaHyvwdxv4sANkCeUKm4zAWPMEuvJ4AGPMpnGo***HXGYAPP&registerMobile=18980070115&name=%E6%98%93%E9%9B%84

wx 登陆

//接口地址 POST
// https://hxgyapiv2.cd120.info/cloud/hosplatcustomer/usercenter/wechat/wxwebauth

//请求数据
{
  "appCode": "HXGYAPP",
  "organCode": "HID0101",
  "channelCode": "PATIENT_WECHAT",
  "code": "043Upv000dqvPP1jot000IH9bq0Upv0R",//这个是啥code
  "loginDeviceNum": "236511321231441",//设备id 看是否 随机给假的
  "loginDeviceType": "WX_H5"
}

//返回数据

{
  "code": "1",
  "errCode": "0",
  "msg": "操作成功",
  "data": {
  "accountId": "357950412671680512",
    "userId": "357950412663291904",
    "token": "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIzNTc5NTA0MTI2NjMyOTE5MDQyMzY1MTEzMjEyMzE0NDEiLCJpYXQiOjE2ODE5NTUyMTgsInN1YiI6IntcInVzZXJJZFwiOlwiMzU3OTUwNDEyNjYzMjkxOTA0XCIsXCJhY2NvdW50SWRcIjpcIjM1Nzk1MDQxMjY3MTY4MDUxMlwiLFwidXNlclR5cGVcIjowLFwiYXBwQ29kZVwiOlwiSFhHWUFQUFwiLFwiY2hhbm5lbENvZGVcIjpcIlBBVElFTlRfV0VDSEFUXCIsXCJkZXZpY2VudW1iZXJcIjpcIjIzNjUxMTMyMTIzMTQ0MVwiLFwiZGV2aWNlVHlwZVwiOlwiV1hfSDVcIixcImFjY291bnROb1wiOlwiMTg5ODAwNzAxMTVcIixcIm5hbWVcIjpcIuaYk-mbhFwiLFwiZG9jdG9ySWRcIjpudWxsLFwib3JnYW5Db2RlXCI6XCJISUQwMTAxXCJ9IiwiZXhwIjoxNjg0NTQ3MjE4fQ.UFoDMgaHyvwdxv4sANkCeUKm4zAWPMEuvJ4AGPMpnGo***HXGYAPP",
    "userType": 0,
    "accountStatus": 0,
    "failReason": null,
    "accountNo": "18980070115",
    "userInfoRespVO": {
    "userId": "357950412663291904",
      "accountId": null,
      "doctorId": null,
      "accountNo": null,
      "nickName": null,
      "introduction": null,
      "headPortrait": null,
      "contactMobile": "18980070115",
      "registerMobile": "18980070115",
      "email": null,
      "name": "易雄",
      "gender": 1,
      "nation": "汉族",
      "credNo": "510105199210103293",
      "credType": "01",
      "credTypeName": "居民身份证",
      "birthDate": "1992-10-10",
      "realnameId": null,
      "realnameStatus": null,
      "dataId": null,
      "wxAuthOpenId": null,
      "wxHeadPortrait": null,
      "wxNickName": null,
      "userStatus": 0,
      "accountStatus": null,
      "accountStatusDesc": null,
      "unit": null,
      "certification": null,
      "deviceId": "E21D407D-3AE2-4B47-B423-12972D9C21DD",
      "deviceType": null
  },
  "nickName": null,
    "headPortrait": null,
    "contactMobile": null,
    "name": "易雄",
    "doctorLoginInfo": null,
    "sdkLogin": null,
    "approve": null,
    "caOpenId": null,
    "alreadyStamp": null,
    "caEnv": null,
    "caClientId": null,
    "pwdCheckResult": null,
    "openid": "ocZagjrGdv4wpC-BAwREbyN_eU3s",
    "unionid": null,
    "wxstatus": 0
}
}