V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
rain0002009

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

  •  
  •   rain0002009 · Mar 1, 2024 · 1204 views
    This topic created in 793 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
        1
    Gaoti  
       Mar 4, 2024
    推荐一个工具 chrome 插件 tweak

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