收藏
回答

企微第三方应用开发open-data使用在第三方浏览器google首次登录签名成功控制台异常403?

curl 'https://open.work.weixin.qq.com/wwopen/openData/agentConfig?f=json&r=6na0il439bj' \

  -H 'authority: open.work.weixin.qq.com' \

  -H 'pragma: no-cache' \

  -H 'cache-control: no-cache' \

  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"' \

  -H 'sec-ch-ua-mobile: ?0' \

  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36' \

  -H 'sec-ch-ua-platform: "Windows"' \

  -H 'content-type: application/json' \

  -H 'accept: */*' \

  -H 'origin: ' \

  -H 'sec-fetch-site: cross-site' \

  -H 'sec-fetch-mode: cors' \

  -H 'sec-fetch-dest: empty' \

  -H 'referer: https://XXX.XXX.com/' \

  -H 'accept-language: zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6' \

  -H 'cookie: wwopen.open.sid=w0dA06AXoK6tiV3XtDtVelrOFO7P0vFmf14awnkbnpjk' \

  --data-raw '{"config":{"corpid":"wwdXXXXXXXXX","agentid":"1000037","timestamp":"1641261826915","nonceStr":"26272822cb7f7c6f144dec36614fee53","signature":"8d7443518e3895f77f1cd3af2fbbe3d147960f69","jsApiList":["selectExternalContact"],"url":"https://XXX.XXX.com/wxwork/#/login?redirect=%2FqywxModules%2FqywxSysManage%2FqywxOrganizationStructure"},"sid":"WHYs7iBMxoEao4ag7tUK9e6fdLBzCVTONl4Xo7xfDSPST9qIRjXHFGovymhq4RB3XPfDPN0JiX0AOkw7OG58uX964Gf8O6ywZoSaQ4E2FUNdkoNe9OF1VenyqR89ClHU"}' \

  --compressed

通讯录open-data组件使用无法回显 部门/员工 名称(浏览器标签处于未关闭状态,一段时间后再次登录)

curl 'https://open.work.weixin.qq.com/wwopen/openData/getOpenData?f=json&r=ez3k6v5v8t' \

  -H 'authority: open.work.weixin.qq.com' \

  -H 'pragma: no-cache' \

  -H 'cache-control: no-cache' \

  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"' \

  -H 'sec-ch-ua-mobile: ?0' \

  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36' \

  -H 'sec-ch-ua-platform: "Windows"' \

  -H 'content-type: application/json' \

  -H 'accept: */*' \

  -H 'origin: https://XXX.XXX.com' \

  -H 'sec-fetch-site: cross-site' \

  -H 'sec-fetch-mode: cors' \

  -H 'sec-fetch-dest: empty' \

  -H 'referer: https://XXX.XXX.com/' \

  -H 'accept-language: zh-TW,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-CN;q=0.6' \

  -H 'cookie: wwopen.open.sid=wfcCQOqjT_zl9HkAlRTdorQTbmEMnNL2-2pVqk0_kL-mEdwVRb6shuXEuK2PgFeFI' \

  --data-raw '{"items":[{"type":"userName","id":"kyo","corpid":null}],"skey":"cxIthIXLV8ZaQCwl4AOTdyFUD+X9BK9ftGNgxbM5JvI=-kxzgwyu8","sid":"WHYs7iBMxoEao4ag7tUK9e6fdLBzCVTONl4Xo7xfDSPST9qIRjXHFGovymhq4RB3XPfDPN0JiX0AOkw7OG58uX964Gf8O6ywZoSaQ4E2FUNdkoNe9OF1VenyqR89ClHU"}' \

  --compressed




页面刷新一下就都正常:

最后一次编辑于  2022-01-04
回答关注问题邀请回答
收藏

4 个回答

  • L Y L
    L Y L
    2022-02-25

    同样的问题,楼主解决了吗?

    2022-02-25
    有用 1
    回复
  • Suner
    Suner
    2023-04-10

    请问你是怎么获取到中文的

    2023-04-10
    有用
    回复
  • Thinking80s
    Thinking80s
    2022-07-29

    遇到同样问题

    2022-07-29
    有用
    回复
  • 邓巍
    邓巍
    2022-06-22

    我也遇到同样问题。请问楼主解决了吗

    2022-06-22
    有用
    回复
登录 后发表内容