Skip to main content

execute_internal

Function execute_internal 

Source
pub async fn execute_internal<S, T, E>(
    svc: &S,
    executor: &dyn RequestExecutor<T, E>,
    uri: &str,
    data: &E,
    access_token_key: &str,
    do_not_auto_refresh: bool,
) -> Result<T, WxErrorException>
where S: WxOpenService + ?Sized, T: Send, E: Send + Clone,
Expand description

执行内部请求(对应 Java WxOpenComponentServiceImpl.get/post 的 token 注入 + 自动刷新语义,与 mp executeInternal 同一模式)。

component_access_token 注入 + 过期(40001/40014/42001)时强制过期并 自动单次刷新(do_not_auto_refresh 防无限递归)。