rain0002009

Whistle 这个代理工具,怎么才能最方便的修改接口的返回

  •  
  •   rain0002009 · Mar 1, 2024 · 1708 views
    This topic created in 982 days ago, the information mentioned may be changed or developed.

    想把线上的接口指向本地起的服务,但线上的接口配了网关多包了一层结构{"data": {...}, "success": true},而本地起的服务只有 data 里面那些东西,想用 Whistle 修改一下,搜了一圈,resBody 好像只能写死数据,resScript 又拿不到原接口的响应内容,问 ai 给我瞎鸡儿答,给我不存在的语法

    3 replies  •  2024-03-05 16:04:29 +08:00
    Gaoti
    Gaoti
    Mar 4, 2024
    1
    推荐一个工具 chrome 插件 tweak

    比用 whistle 修改接口返回方便多了
    Gaoti
    Gaoti
    Mar 4, 2024
    2
    看 OP 描述是要跑脚本修改 response ?
    rain0002009
    rain0002009
    OP
    Mar 5, 2024
    3
    @Gaoti #1 tweak 也只能返回写死的数据 我要在原来的数据上再包一层
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1589 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 455ms · UTC 09:19 · PVG 17:19 · LAX 01:19 · JFK 04:19
    ♥ Do have faith in what you're doing.