let launchMiniProgramReq = WXLaunchMiniProgramReq()
launchMiniProgramReq.userName = "gh_xxx"
launchMiniProgramReq.path = "pages/xxx/xxxx"
launchMiniProgramReq.miniProgramType = .release
WXApi.send(launchMiniProgramReq) { res in
print("--- res \(res)")
}
上述代码,走到.send方法了但是res=false. 没有跳到小程序去,如何处理
你这写法看着没问题,是不是path路径错了?换成"/pages/xxx/xxxx"试试?