- 云托管服务需要访问外网的服务,在本地开发测试没问题,但是上线以后就无法访问,需要单独配置吗?
域名为示例域名: Traceback (most recent call last): 07/26 10:48:50 During handling of the above exception, another exception occurred: 07/26 10:48:50 +------------------------------------ 07/26 10:48:50 | requests.exceptions.ConnectionError: HTTPSConnectionPool(host='example.worker.dev', port=443): Max retries exceeded with url: /api/v1/category/index?user_id=0 (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable'))
07-26 - Invalid context type [webgl2] for Canvas#getContex
<template> <view class="index"> <nut-button type="primary" @click="handleClick">拍照或选择图片</nut-button> </view> </template> <script> import { reactive, toRefs, ref, onMounted } from "vue"; import { Dongdong } from "@nutui/icons-vue-taro"; import Taro from "@tarojs/taro"; import * as paddlejs from '@paddlejs/paddlejs-core'; import '@paddlejs/paddlejs-backend-webgl'; const plugin = requirePlugin("paddlejs-plugin"); plugin.register(paddlejs, wx); let pdjs; export default { name: "Index", components: { Dongdong, }, setup() { const state = reactive({ tmpImage: "", }); const handleClick = () => { wx.chooseMedia({ count: 1, mediaType: ["image"], sourceType: ["album", "camera"], success: (value) => { let { errMsg, tempFiles } = value; if (errMsg != "chooseMedia:ok") { Taro.showToast({ title: "选择图片失败", icon: "error", duration: 3000, }); return; } let [firstImage] = tempFiles; state.tmpImage = firstImage.tempFilePath; console.log(state, `success`); }, fail: (err) => { Taro.showToast({ title: "操作失败", icon: "error", duration: 3000, }); }, complete: (done) => { console.log(done); }, }); }; onMounted(() => { pdjs = new paddlejs.Runner({ modelPath: "https://paddlejs.cdn.bcebos.com/models/mobilenetV2_nchw", feedShape: { fw: 224, fh: 224, }, fill: "#fff", targetSize: { height: 224, width: 224, }, mean: [0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225], }); pdjs.init().then(() => { // 初始化完成 console.log("init model") }); }); return { ...toRefs(state), handleClick, }; }, }; </script> <style lang="scss"> .index { font-family: "Avenir", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: center; } </style>
2023-12-07 - 调用 getBrandWCPayRequest 返回 no permission to 错误?
同一个落地页链接,通过消息发送给A用户,A用户打开页面后可以调起支付,如果把该链接通过自己的公众号B消息框发送后,再点击链接进行支付就会提示 getBrandWCPayRequest no permission to execute 错误。但是把链接通过其它公众号C消息框发送后再点开,也可以支付。不知道该链接在自己的公众号B消息内打开发生了什么问题。 iOS 有问题,Android 没问题。 安全目录有配置过,不知道是不是再自己公众号消息内,支付时获取安全目录对比有问题。 有遇到过吗?
2022-01-26