微信云托管官网
微信云托管静态部署页面访问微信云托管服务跨域 [图片] [图片] [图片]
[图片] 如图,不懂这是什么问题。 发工单也发不了,提交就说工单提交失败。 不太明白,我这是小程序账号登录的,怎以和公众号扯上关系了,这是我其中一个小程序,其他的没有这个问题,不知道原因在哪? 是必须交认证费才能部署吗,现在是测试阶段,名字logo什么的都没有想好,也不能做认证啊,不是300块钱的事。
[2024-05-06 17:09:19] Started by user coding [2024-05-06 17:09:19] Running in Durability level: MAX_SURVIVABILITY [2024-05-06 17:09:20] [Pipeline] Start of Pipeline [2024-05-06 17:09:20] [Pipeline] node [2024-05-06 17:09:20] Running on Jenkins in /root/workspace [2024-05-06 17:09:20] [Pipeline] { [2024-05-06 17:09:21] [Pipeline] stage [2024-05-06 17:09:21] [Pipeline] { (检出 ZIP 包) [2024-05-06 17:09:21] Stage "检出 ZIP 包" skipped due to when conditional [2024-05-06 17:09:21] [Pipeline] } [2024-05-06 17:09:21] [Pipeline] // stage [2024-05-06 17:09:21] [Pipeline] stage [2024-05-06 17:09:21] [Pipeline] { (检出代码仓库) [2024-05-06 17:09:21] [Pipeline] sh [2024-05-06 17:09:21] + git clone ****** . [2024-05-06 17:09:21] Cloning into '.'... [2024-05-06 17:09:28] [Pipeline] sh [2024-05-06 17:09:28] + git checkout master [2024-05-06 17:09:28] Already on 'master' [2024-05-06 17:09:28] Your branch is up-to-date with 'origin/master'. [2024-05-06 17:09:28] [Pipeline] } [2024-05-06 17:09:29] [Pipeline] // stage [2024-05-06 17:09:29] [Pipeline] stage [2024-05-06 17:09:29] [Pipeline] { (构建 Docker 镜像) [2024-05-06 17:09:29] [Pipeline] sh [2024-05-06 17:09:29] + docker login -u ****** -p ****** ccr.ccs.tencentyun.com/tcb-******-ckun/ca-yomkpfjm_dotnet-u7ti:dotnet-u7ti-002-20240506170913 [2024-05-06 17:09:29] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2024-05-06 17:09:29] WARNING! Your password will be stored unencrypted in /root/.docker/config.json. [2024-05-06 17:09:29] Configure a credential helper to remove this warning. See [2024-05-06 17:09:29] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2024-05-06 17:09:29] [2024-05-06 17:09:29] Login Succeeded [2024-05-06 17:09:29] [Pipeline] sh [2024-05-06 17:09:29] + docker build -f ././/Dockerfile -t ccr.ccs.tencentyun.com/tcb-******-ckun/ca-yomkpfjm_dotnet-u7ti:dotnet-u7ti-002-20240506170913 ./ [2024-05-06 17:09:29] DEPRECATED: The legacy builder is deprecated and will be removed in a future release. [2024-05-06 17:09:29] Install the buildx component to build images with BuildKit: [2024-05-06 17:09:29] https://docs.docker.com/go/buildx/ [2024-05-06 17:09:29] [2024-05-06 17:09:30] Sending build context to Docker daemon 195.4MB [2024-05-06 17:09:30] Step 1/15 : FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build [2024-05-06 17:09:31] 6.0-alpine: Pulling from dotnet/sdk [2024-05-06 17:09:32] 619be1103602: Pulling fs layer [2024-05-06 17:09:32] 49c78dc87bac: Pulling fs layer [2024-05-06 17:09:32] b1217d23467d: Pulling fs layer [2024-05-06 17:09:32] b27277ae2b4a: Pulling fs layer [2024-05-06 17:09:32] a00481cbf2a0: Pulling fs layer [2024-05-06 17:09:32] 69eb4d60fc6d: Pulling fs layer [2024-05-06 17:09:32] e8900b8e284d: Pulling fs layer [2024-05-06 17:09:32] 49c78dc87bac: Verifying Checksum [2024-05-06 17:09:32] 49c78dc87bac: Download complete [2024-05-06 17:09:32] 619be1103602: Verifying Checksum [2024-05-06 17:09:32] 619be1103602: Download complete [2024-05-06 17:09:32] 619be1103602: Pull complete [2024-05-06 17:09:33] b27277ae2b4a: Verifying Checksum [2024-05-06 17:09:33] b27277ae2b4a: Download complete [2024-05-06 17:09:33] 49c78dc87bac: Pull complete [2024-05-06 17:09:33] e8900b8e284d: Verifying Checksum [2024-05-06 17:09:33] e8900b8e284d: Download complete [2024-05-06 17:09:35] a00481cbf2a0: Verifying Checksum [2024-05-06 17:09:35] a00481cbf2a0: Download complete [2024-05-06 17:09:37] b1217d23467d: Verifying Checksum [2024-05-06 17:09:37] b1217d23467d: Download complete [2024-05-06 17:09:38] b1217d23467d: Pull complete [2024-05-06 17:09:38] b27277ae2b4a: Pull complete [2024-05-06 17:09:38] a00481cbf2a0: Pull complete [2024-05-06 17:10:05] 69eb4d60fc6d: Verifying Checksum [2024-05-06 17:10:05] 69eb4d60fc6d: Download complete [2024-05-06 17:10:06] 69eb4d60fc6d: Pull complete [2024-05-06 17:10:06] e8900b8e284d: Pull complete [2024-05-06 17:10:06] Digest: sha256:f09dc36e5f4ed0c31690e98ee5226737544bba6690fe1040cfea52c4f9573dcd [2024-05-06 17:10:06] Status: Downloaded newer image for mcr.microsoft.com/dotnet/sdk:6.0-alpine [2024-05-06 17:10:06] ---> f766f08db8b2 [2024-05-06 17:10:06] Step 2/15 : RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tencent.com/g' /etc/apk/repositories [2024-05-06 17:10:06] ---> Running in 89d69def2bc7 [2024-05-06 17:10:07] Removing intermediate container 89d69def2bc7 [2024-05-06 17:10:07] ---> 0f7419da8e9c [2024-05-06 17:10:07] Step 3/15 : WORKDIR /source [2024-05-06 17:10:07] ---> Running in b78f857dcb28 [2024-05-06 17:10:07] Removing intermediate container b78f857dcb28 [2024-05-06 17:10:07] ---> 5abc4da20dd8 [2024-05-06 17:10:07] Step 4/15 : COPY *.sln . [2024-05-06 17:10:07] ---> 40e7eae35641 [2024-05-06 17:10:07] Step 5/15 : COPY aspnetapp/*.csproj ./aspnetapp/ [2024-05-06 17:10:07] ---> dcf39395f51a [2024-05-06 17:10:07] Step 6/15 : RUN dotnet restore -r linux-musl-x64 /p:PublishReadyToRun=true [2024-05-06 17:10:07] ---> Running in f2d4e31000b4 [2024-05-06 17:10:08] Determining projects to restore... [2024-05-06 17:10:26] Restored /source/aspnetapp/aspnetapp.csproj (in 16.8 sec). [2024-05-06 17:10:38] Removing intermediate container f2d4e31000b4 [2024-05-06 17:10:38] ---> 534703d740cb [2024-05-06 17:10:38] Step 7/15 : COPY aspnetapp/. ./aspnetapp/ [2024-05-06 17:10:38] ---> f2cad09d770d [2024-05-06 17:10:38] Step 8/15 : WORKDIR /source/aspnetapp [2024-05-06 17:10:38] ---> Running in 0bc547805c41 [2024-05-06 17:10:39] Removing intermediate container 0bc547805c41 [2024-05-06 17:10:39] ---> d05be36cf4d3 [2024-05-06 17:10:39] Step 9/15 : RUN dotnet publish -c release -o /app -r linux-musl-x64 --self-contained true --no-restore /p:PublishTrimmed=true /p:PublishReadyToRun=true /p:PublishSingleFile=true [2024-05-06 17:10:39] ---> Running in 0dc57ddd68c6 [2024-05-06 17:10:39] MSBuild version 17.3.2+561848881 for .NET [2024-05-06 17:10:40] /usr/share/dotnet/sdk/6.0.421/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(267,5): error NETSDK1047: Assets file '/source/aspnetapp/obj/project.assets.json' doesn't have a target for 'net6.0/linux-musl-x64'. Ensure that restore has run and that you have included 'net6.0' in the TargetFrameworks for your project. You may also need to include 'linux-musl-x64' in your project's RuntimeIdentifiers. [/source/aspnetapp/aspnetapp.csproj] [2024-05-06 17:10:40] The command '/bin/sh -c dotnet publish -c release -o /app -r linux-musl-x64 --self-contained true --no-restore /p:PublishTrimmed=true /p:PublishReadyToRun=true /p:PublishSingleFile=true' returned a non-zero code: 1 [2024-05-06 17:10:40] [Pipeline] } [2024-05-06 17:10:40] [Pipeline] // stage [2024-05-06 17:10:40] [Pipeline] stage [2024-05-06 17:10:40] [Pipeline] { (推送 Docker 镜像到 TCR) [2024-05-06 17:10:40] Stage "推送 Docker 镜像到 TCR" skipped due to earlier failure(s) [2024-05-06 17:10:40] [Pipeline] } [2024-05-06 17:10:40] [Pipeline] // stage [2024-05-06 17:10:40] [Pipeline] } [2024-05-06 17:10:40] [Pipeline] // node [2024-05-06 17:10:40] [Pipeline] End of Pipeline [2024-05-06 17:10:40] ERROR: script returned exit code 1 [2024-05-06 17:10:40] Finished: FAILURE *** -----------构建dotnet-u7ti-002----------- 2024-05-06 17:09:18 create_build_image : succ,
目前项目需要使用云托管,应该怎么使用uniapp开发法对接,有没有大佬可以帮忙指导?
纯纯门外汉,我想问一下搭建一个微信小程序困难吗?老弟需求想卖卖东西,或者多一个渠道曝光产品。
我用了云托管本地调试Apache-think模板,VPC上的mysql也启动了,为什么请求不了数据库呢? 就是默认的那个计数器程序,不能正常运行。debug.json里写了数据库信息(就用内网的ip和端口没错吧,开了公网的也没用)。 云托管控制器里的服务设置里,环境变量是 { "TOAL_KEY": "当然这里有字", "TOAL_ROLE": "当然这里有字", "TOAL_MODE": "当然这里有字", "TOAL_VERBOSE": "当然这里有字" } 我不知道为什么不像非本地调试服务一样,这里没有数据库信息,我以为是不是在debug.json里设置了。总之我加上也没用 直接访问控制器地址 http://127.0.0.1:27081/api/count得到 SQLSTATE[HY000] [2006] MySQL server has gone away
check_eks_virtual_service : process, DescribeVersion_user_error_Back-off restarting failed container, [service]:[Exec lifecycle hook ([/bin/sh /app/cert/initenv.sh]) for Container "nacos-011" in Pod "nacos-011-8d4bf7fc-77ktz_mrfvsxim(14cc1da2-c06f-427f-b732-41367eb987d3)" failed - error: command '/bin/sh /app/cert/initenv.sh' exited with 137: + certFile=/app/cert/certificate.crt + certLog=/app/cert.log + srcIp=169.254.10.1 + srcHost=api.weixin.qq.com + checkFileCnt=0 + is_user_root + id -u + '[' 0 -eq 0 ] + echo 'User is root, patching env and certs.' + '[' '!' -f /app/cert/certificate.crt ] + '[' '!' -f /etc/os-release ] + . /etc/os-release + NAME='Alpine Linux' + ID=alpine + VERSION_ID=3.19.1 + PRETTY_NAME='Alpine Linux v3.19' + HOME_URL=https://alpinelinux.org/ + BUG_REPORT_URL=https://gitlab.alpinelinux.org/alpine/aports/-/issues + echo '[I]: os release is alpine' + update-ca-certificates -h , message: "+ certFile=/app/cert/certificate.crt\n+ certLog=/app/cert.log\n+ srcIp=169.254.10.1\n+ srcHost=api.weixin.qq.com\n+ checkFileCnt=0\n+ is_user_root\n+ id -u\n+ '[' 0 -eq 0 ]\n+ echo 'User is root, patching env and certs.'\n+ '[' '!' -f /app/cert/certificate.crt ]\n+ '[' '!' -f /etc/os-release ]\n+ . /etc/os-release\n+ NAME='Alpine Linux'\n+ ID=alpine\n+ VERSION_ID=3.19.1\n+ PRETTY_NAME='Alpine Linux v3.19'\n+ HOME_URL=https://alpinelinux.org/\n+ BUG_REPORT_URL=https://gitlab.alpinelinux.org/alpine/aports/-/issues\n+ echo '[I]: os release is alpine'\n+ update-ca-certificates -h\n",Back-off restarting failed container,]
<html> <head> <title>413 Request Entity Too Large</title> </head> <body> <center> <h1>413 Request Entity Too Large</h1> </center> <hr> <center>nginx/1.17.8</center> </body> </html>
背景:目前我的springboot服务部署在微信云托管中,此时我的小程序直接在微信开发者工具中访问springboot服务的公网地址是可以访问的,但是当上传为体验版就请求失败,这是怎么回事? 问题1、我现在有一个spirngboot程序部署在了微信云托管中,我的微信小程序也要再次部署在微信云托管中,才能使得小程序访问springboot服务的公网/内网地址吗? 问题2、必须使用[代码]wx.cloud.callContainer来替换wx.request才能通吗。[代码] [代码]求大佬赐教![代码] [代码]补充:1、[代码]微信云托管中的内网地址输入到小程序网页后台中的requests合法域名中时,提示要我网址备案,这种部署在云托管中的内网网址也要备案吗?还有如果输入公网地址,就提示不能使用公网地址,仅测试可用。怎么办呀,难道真去备案? 补充:2、如果使用[代码]x.cloud.callContainer[代码],那么我目前开发的微信小程序的前端js代码全部都要有修改,感觉工作量比较大,偏向于不修改代码但使其联通。
麻烦大佬帮忙看一下,小程序,云托管支付的统一下单接口,报错40003 invalid openid。 环境如下: 微信云托管 : springboot-nnii 云托管全局设置>微信支付配置>配置了微信公众号wx17***7c1、微信小程序wxb***6da两个。绑定状态是已绑定。商户号是15*****。 问题如下: 小程序(还未上线),调用统一下单接口(/_/pay/unifiedorde)时,报错40003 invalid openid。 小程序传参数subMchId是商户号15*****,openId是oXh2U60ULSOi3t9rPpIQvN5E0Tw8。 [图片] 但是公众号调用统一下单接口,就可以下单成功,正常返回。 公众号的subMchId也是商户号15*****,openId是,oqX-c6A_QYOJMgh2qzTTlfYK2tiE,除了openId,两个请求参数都一样。因为绑定的都是同一个商户号下。 这两个openid都是通微信号生成的,调用的服务也都是同一个接口,就不知道什么原因,为什么小程序对应的openId不存在。然后还想请问一下通过什么接口能判断小程序的openid是否在appid下? =================解决了================== 原因:公众号和小程序部署在同一个云托管的同一台机器,而云托管下支付单时,没有要求传appid,取得是创建云托管的默认appid(我的是公众号appid),所以小程序的openid下支付单,就会报openid不存在 解决办法: 1。小程序迁到自己的云托管(验证没问题了) 2。大佬建议云托管》设置》资源复用,也适合这个场景,但我没验证过这个,应该也可以。https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/guide/reuse/
云托管的ip地址是变化的,公众号如何设置在公众号ip白名单?
请问小程序端如何获取自己的openid 或unionid? 针对需对是,每个小程序用户会生成自己的图片,图片会上传到云托管的对象存储,这些图片允许自己访问,需要用一个ID(openid 或 unionid)作为文件夹名, 难道我得服务端写一个接口专门返回这个openid ? (openid是在服务端header 头里才有) 我试了wx.login 它只给我返回一个code, 我都用了云托管了,为什么还返回一个code,不是免鉴权了,不应该直接返回相关信息吗?
一直在转圈,自动刷新,但是进不去,不过API正常调用存储,哪位大神解惑一下! [图片]
微信云托管中,有出口固定ip的功能,是收费的,请问ip固定后,利用这个固定ip,能否把一些物联网的设备的上的数据,如摄像头、门禁中的数据。或第三方网站上的数据,发到云托管上来处理呢?如果可以的话,恳请各位高手提供个demo,不胜感激
一年前我应该操作过一次,但是流程我忘了。目前遇到的情况是: 现有的自定义域名的SSL证书ID我不知道怎么来的,因为我看了腾讯云免费SSL列表中,没有这个ID的证书,但是我们之前并没有在其他的平台申请过免费SSL。我已经在腾讯云申请了新的SSL,现在就差部署,但是我不太清楚在哪里部署。我看到编辑里有上传签名证书和签名私钥,但由于上一个证书我不知道怎么来的,所以我也不敢贸然替换新的证书。
-----------服务springboot-8op0部署springboot-8op0-007----------- 2024-01-11 10:44:22 create_eks_virtual_service : succ, 2024-01-11 10:44:22 check_eks_virtual_service : process, DescribeVersion_user_error_Back-off restarting failed container, [service]:[Exec lifecycle hook ([/bin/sh /app/cert/initenv.sh]) for Container "springboot-8op0-007" in Pod "springboot-8op0-007-8cc58f5fc-dllpk_odwapxqn(268ad173-f557-4105-a3d4-8f6b6e9fd4f4)" failed - error: command '/bin/sh /app/cert/initenv.sh' exited with 137: + certFile=/app/cert/certificate.crt + certLog=/app/cert.log + srcIp=169.254.10.1 + srcHost=api.weixin.qq.com + checkFileCnt=0 + is_user_root + id -u + '[' 0 -eq 0 ] + echo 'User is root, patching env and certs.' + '[' '!' -f /app/cert/certificate.crt ] + '[' '!' -f /etc/os-release ] + . /etc/os-release + NAME='Alpine Linux' + ID=alpine + VERSION_ID=3.13.12 + PRETTY_NAME='Alpine Linux v3.13' + HOME_URL=https://alpinelinux.org/ + BUG_REPORT_URL=https://bugs.alpinelinux.org/ + echo '[I]: os release is alpine' + update-ca-certificates -h WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping , message: "+ certFile=/app/cert/certificate.crt\n+ certLog=/app/cert.log\n+ srcIp=169.254.10.1\n+ srcHost=api.weixin.qq.com\n+ checkFileCnt=0\n+ is_user_root\n+ id -u\n+ '[' 0 -eq 0 ]\n+ echo 'User is root, patching env and certs.'\n+ '[' '!' -f /app/cert/certificate.crt ]\n+ '[' '!' -f /etc/os-release ]\n+ . /etc/os-release\n+ NAME='Alpine Linux'\n+ ID=alpine\n+ VERSION_ID=3.13.12\n+ PRETTY_NAME='Alpine Linux v3.13'\n+ HOME_URL=https://alpinelinux.org/\n+ BUG_REPORT_URL=https://bugs.alpinelinux.org/\n+ echo '[I]: os release is alpine'\n+ update-ca-certificates -h\nWARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping\n",Back-off restarting failed container,]
2024-03-26 10:51:00 create_eks_virtual_service : succ, 2024-03-26 10:51:00 check_eks_virtual_service : process, DescribeVersion_user_error_Liveness probe failed: dial tcp 10.15.13.111:80: connect: connection refused 日志: 03/26 11:20:49dc2h-music-013Caused by: java.net.SocketTimeoutException: connect timed out03/26 11:20:49dc2h-music-013 ... 56 common frames omitted03/26 11:20:49dc2h-music-013 at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:819) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:949) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at com.mysql.cj.NativeSession.connect(NativeSession.java:120) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) ~[mysql-connector-java-8.0.28.jar!/:8.0.28]03/26 11:20:49dc2h-music-013 at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.03/26 11:20:49dc2h-music-013Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure03/26 11:20:49dc2h-music-013 at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[dc2h-music-0.0.1.jar:0.0.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[dc2h-music-0.0.1.jar:0.0.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[dc2h-music-0.0.1.jar:0.0.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[dc2h-music-0.0.1.jar:0.0.1]03/26 11:20:49dc2h-music-013 at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_275]03/26 11:20:49dc2h-music-013 at com.dc2h.dc2hmusic.Dc2hMusicApplication.main(Dc2hMusicApplication.java:10) ~[classes!/:0.0.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1290) ~[spring-boot-2.6.1.jar!/:2.6.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1301) ~[spring-boot-2.6.1.jar!/:2.6.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.SpringApplication.run(SpringApplication.java:302) ~[spring-boot-2.6.1.jar!/:2.6.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) ~[spring-boot-2.6.1.jar!/:2.6.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:730) ~[spring-boot-2.6.1.jar!/:2.6.1]03/26 11:20:49dc2h-music-013 at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.6.1.jar!/:2.6.1]03/26 11:20:49dc2h-music-013 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.13.jar!/:5.3.13]03/26 11:20:49dc2h-music-013 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:908) ~[spring-context-5.3.13.jar!/:5.3.13]03/26 11:20:49dc2h-music-013 at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1154) ~[spring-context-5.3.13.jar!/:5.3.13]03/26 11:20:49dc2h-music-013 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.13.jar!/:5.3.13]03/26 11:20:49dc2h-music-013 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.13.jar!/:5.3.13]03/26 11:20:49dc2h-music-013 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.13.jar!/:5.3.13]03/26 11:20:50dc2h-music-0132024-03-26 03:20:49.383 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...03/26 11:20:50dc2h-music-0132024-03-26 03:20:49.066 INFO 1 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
前端和后端都使用微信云托管,后端接口通过前端nginx反向代理调用,但返回404 nginx配置 [图片] 请求后没走代理反而走的本地路径 [图片] 前端请求失败截图 [图片]
========================================================= 问题:怎么把download 下来的文件保存到本地? ========================================================= 微信云托管 开发公众号H5页面 在 『微信云托管 / 对象存储』 中放了一张JPG图片文件,拷贝 fileID 前端页面原样copy 微信官方文档[https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/development/storage/h5/download.html] ,然后放在『微信云托管 / 静态资源存储』 [图片] 在 微信开发者工具 里可以看到: [图片] ========================================================= 问题:怎么把download 下来的文件保存到本地? =========================================================
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/container/Cloud.callContainer.html timeoutnumber否根据业务自定义超时时间,单位为毫秒,本项取值需要小于 1500 毫秒(服务启动耗时 +请求耗时 < timeout < 1500 毫秒) 这里是15秒吧 ? 那就是15000 而不是1500 。
1、均切换为使用自定义域名
2、在云托管的服务内处理CORS,允许和放通指定的自定义域名的跨域调用