收藏
回答

接口降级?

const res = await axios.post(

        `https://api.weixin.qq.com/wxa/getwxacode?access_token=${token}`,

        JSON.stringify({

            path: 'pages/index/index',

            width: 430,

            auto_color: false,

            is_hyaline: true,

            line_color: { r: 0, g: 0, b: 0 }

        }),

        {

            responseType: 'arraybuffer',

            headers: { 'Content-Type': 'application/json' }

        }

    )

一直返回jpeg的格式,是不是接口被降级了

回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    2025-12-29
    有用
    回复
登录 后发表内容