Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
微信云托管环境中
api.weixin.qq.com被解析为内网地址,无法使用 HTTPS,需改用 HTTP 协议访问。更改内容
WxMaConfig 接口
isUseWxCloudRun()/setUseWxCloudRun()配置方法getEffectiveApiHostUrl()默认方法统一处理 API URL 替换逻辑DEFAULT_API_HOST_URL和CLOUD_RUN_API_HOST_URL常量WxMaDefaultConfigImpl
useWxCloudRun字段及其访问方法HTTP 客户端实现类
BaseWxMaServiceImpl、WxMaServiceHttpClientImpl、WxMaServiceOkHttpImpl、WxMaServiceJoddHttpImpl中的 URL 处理逻辑使用方式
优先级
自定义 apiHostUrl>useWxCloudRun>默认 HTTPS 地址参考
https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloudrun/src/guide/weixin/open.html
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.