微信云托管官网
第一次请求login接口成功,按逻辑需携带cookie请求info接口,但cookie不一致 导致失败重定向 [图片][图片] [图片]
我后台仅有一个间隔1小时的定时任务,每次就查询更新一个只有20条记录的数据库表。我查看数据库sql日志,这个时间段内sql执行甚至没有超过100次,为什么监控上会有这么多select数 [图片][图片]
绑定失败:不支持的商户号类目 商户号关联的小程序正在提供商品/服务在线销售及配送,暂不支持使用云开发微信支付,如需使用微信支付请使用微信支付 api 进行开发。详见小程序交易结算管理确认说明 对于以上我想使用云托管的情况下如何解决?
也就是说,同一个环境 ID 下,我创建一个服务B来部署 web端后台系统,能否实现去访问使用小程序的后端服务A ? 如果 ok,是访问内网地址吗?后台系统访问地址能用服务 B外网地址访问吗?
我用的是PHP,只想单纯更新代码,看到每更新一次代码,都会重新生成新的容器。这也太费时了,是否可以在原有的容器里,只是同步一次git代码
失败代码是:wxf64337e0a929c126 prod-9g0o4pad3725f922 tid=965846 rid=multi_tenant_1uORHP7lSWDu4n aipbackend ptid=637889 bid=53755713 aipbackend-002 具体显示如下: Downloaded from tencent: https://mirrors.tencent.com/nexus/repository/maven-public/org/apache/maven/plugins/maven-war-plugin/3.4.0/maven-war-plugin-3.4.0.jar (83 kB at 392 kB/s) [2025-06-09 09:43:19] #13 6.056 [INFO] ------------------------------------------------------------------------ [2025-06-09 09:43:19] #13 6.056 [INFO] BUILD FAILURE [2025-06-09 09:43:19] #13 6.056 [INFO] ------------------------------------------------------------------------ [2025-06-09 09:43:19] #13 6.057 [INFO] Total time: 4.911 s [2025-06-09 09:43:19] #13 6.057 [INFO] Finished at: 2025-06-09T01:43:18Z [2025-06-09 09:43:19] #13 6.057 [INFO] ------------------------------------------------------------------------ [2025-06-09 09:43:19] #13 6.058 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.4.1:clean (default-clean) on project aipBackend: The plugin org.apache.maven.plugins:maven-clean-plugin:3.4.1 requires Maven version 3.6.3 -> [Help 1] [2025-06-09 09:43:19] #13 6.058 [ERROR] [2025-06-09 09:43:19] #13 6.058 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [2025-06-09 09:43:19] #13 6.059 [ERROR] Re-run Maven using the -X switch to enable full debug logging. [2025-06-09 09:43:19] #13 6.059 [ERROR] [2025-06-09 09:43:19] #13 6.059 [ERROR] For more information about the errors and possible solutions, please read the following articles: [2025-06-09 09:43:19] #13 6.059 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException [2025-06-09 09:43:19] #13 ERROR: process "/bin/sh -c mvn -s /app/settings.xml -f /app/pom.xml clean package" did not complete successfully: exit code: 1 [2025-06-09 09:43:19] ------ [2025-06-09 09:43:19] > [build 5/5] RUN mvn -s /app/settings.xml -f /app/pom.xml clean package: [2025-06-09 09:43:19] 6.057 [INFO] Total time: 4.911 s [2025-06-09 09:43:19] 6.057 [INFO] Finished at: 2025-06-09T01:43:18Z [2025-06-09 09:43:19] 6.057 [INFO] ------------------------------------------------------------------------ [2025-06-09 09:43:19] 6.058 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.4.1:clean (default-clean) on project aipBackend: The plugin org.apache.maven.plugins:maven-clean-plugin:3.4.1 requires Maven version 3.6.3 -> [Help 1] [2025-06-09 09:43:19] 6.058 [ERROR] [2025-06-09 09:43:19] 6.058 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [2025-06-09 09:43:19] 6.059 [ERROR] Re-run Maven using the -X switch to enable full debug logging. [2025-06-09 09:43:19] 6.059 [ERROR] [2025-06-09 09:43:19] 6.059 [ERROR] For more information about the errors and possible solutions, please read the following articles: [2025-06-09 09:43:19] 6.059 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException [2025-06-09 09:43:19] ------ [2025-06-09 09:43:19] Dockerfile:16 [2025-06-09 09:43:19] -------------------- [2025-06-09 09:43:19] 14 | # 执行代码编译命令 [2025-06-09 09:43:19] 15 | # 自定义settings.xml, 选用国内镜像源以提高下载速度 [2025-06-09 09:43:19] 16 | >>> RUN mvn -s /app/settings.xml -f /app/pom.xml clean package [2025-06-09 09:43:19] 17 | [2025-06-09 09:43:19] 18 | # 选择运行时基础镜像 [2025-06-09 09:43:19] -------------------- [2025-06-09 09:43:19] ERROR: failed to solve: process "/bin/sh -c mvn -s /app/settings.xml -f /app/pom.xml clean package" did not complete successfully: exit code: 1 [2025-06-09 09:43:19] [Pipeline] } [2025-06-09 09:43:19] [Pipeline] // stage [2025-06-09 09:43:19] [Pipeline] stage [2025-06-09 09:43:19] [Pipeline] { (推送 Docker 镜像到 TCR) [2025-06-09 09:43:19] Stage "推送 Docker 镜像到 TCR" skipped due to earlier failure(s) [2025-06-09 09:43:19] [Pipeline] } [2025-06-09 09:43:19] [Pipeline] // stage [2025-06-09 09:43:19] [Pipeline] } [2025-06-09 09:43:19] [Pipeline] // node [2025-06-09 09:43:19] [Pipeline] End of Pipeline [2025-06-09 09:43:19] ERROR: script returned exit code 1 [2025-06-09 09:43:19] Finished: FAILURE *** -----------构建aip-001----------- 2025-06-09 09:42:55 create_build_image : creating 2025-06-09 09:43:21 check_build_image : fail
不到服务停止按钮
[图片]
设置了内网貌似无法访问,开启外网又说不安全,不能作为正式生产。 [图片]
[图片]
向托管的SpringBoot容器提交文件为何会有1兆大小的限制,超过1兆就会报413,如何解除限制? 我们是有处理文件的需求,如何说先从服务端获取到上传地址,再由浏览器端上传,再到服务端去对象存储调用文件处理,处理好了再存回去,再前端来获取处理结果,这得绕好几层呀
我有一个express服务,其中有个api是用于上传文件,代码见如下。 export async function upload(req: express.Request, res: express.Response) { if (!req.files || !req.files.file) { res.status(400).send('未上传文件'); return; } try { //@ts-ignore const uploadedFile = req.files.file; //@ts-ignore const fileBuffer = uploadedFile.data; // 获取文件的 Buffer //@ts-ignore const fileName = uploadedFile.name; const url = await uploadBuffer(fileBuffer, fileName) res.status(200).json({ url }) } catch (ex) { //@ts-ignore res.status(500).json({ msg: ex.msg }) } } 在微信小程序中通过如下代码上传 export async function uploadFile(filePath: string): Promise<string> { const token = wx.getStorageSync("token") return new Promise((resolve, reject) => { wx.uploadFile({ url: env.baseUrl + "/file/upload", filePath: filePath, header: { "Authorization": `Bearer ${token}` }, name: 'file', success(res) { if (res.statusCode == 200) { const json = JSON.parse(res.data) as { url: string } resolve(json.url) return; } reject(res.errMsg) }, fail(e) { reject(e.errMsg) } }) }) } 现在因为一些原因我需要通过微信云托管去提供后端服务,我现在的问题是,我该如何通过callContainer或者其他的方式去上传文件?我不想上传到微信云的文件存储系统,我想通过调用我的后端api去完成文件的上传。 谢谢。
你好,我想要一份java的微信云托管源码,有下载好的方便交流一下
我发现云托管会休眠,有时候登录不进去,过几分钟就好了、能登陆进去了。 怎么避免休眠呢? 我在查阅Cursor的时候,Cursor说: 微信云托管确实有这样的特性: 当应用长时间没有访问时,云托管会自动将应用实例休眠 当有新的请求进来时,需要重新启动实例,这会导致第一次请求响应较慢 如果访问量较小,云托管可能会减少实例数量以节省资源
如00:00 - 07:59 实例副本数自动改成0,无人访问停止服务。8:00 实例数自动改成1,一直到晚上23:59 都保持一致至少有1个副本运行。
为什么这段代码上面的定时任务不执行呢?是什么冲突了吗?也找不到提示的报错内容。 框架:flask 代码:python 系统:alpine:3.13 from apscheduler.schedulers.background import BackgroundScheduler from wxcloudrun import app from wxcloudrun.views import fetch_and_store_daily_content import os scheduler = BackgroundScheduler(daemon=True) def job_with_logging(): with app.app_context(): # 确保任务在应用上下文中运行 app.logger.info('=== 开始执行每日内容抓取任务 ===') try: fetch_and_store_daily_content() app.logger.info('=== 每日内容抓取任务执行成功 ===') except Exception as e: app.logger.error(f'!!! 任务执行失败: {str(e)} !!!') # 添加任务 scheduler.add_job( func=job_with_logging, trigger='cron', hour=18, minute=40, timezone='Asia/Shanghai', id='daily_content_fetch' ) # 仅在主进程且非重载时启动调度器(防止 Flask 调试模式重复执行) if not app.debug or os.environ.get('WERKZEUG_RUN_MAIN') == 'true': with app.app_context(): scheduler.start() app.logger.info(f'定时任务已启动,下次执行时间: {scheduler.get_jobs()[0].next_run_time}')
大佬们,用了云托管,代码是GitHub流水线部署的thinkphp代码。 后端有对小程序内容的CMS管理后台,那我怎么访问后台呢? 我在【服务设置】里打开【公网访问】,在浏览器里可以看见后台页面。 (打开公网得过一会才能访问,可能有延迟。但因为我感觉不能老开着公网访问,所以也没细观察。) 不管怎么说,这公网访问不是不安全嘛,我不能老开着这个吧。 现在改什么东西我都直接改数据库。我想知道怎么才能访问CMS后台? 开了【内网访问】给我一个地址,浏览器也打不开,怎么访问他呢? 关于【内网访问】我只看见文档里的服务间内网调用,别的实在是没看见了。
微信云托管部署了一个websever服务开放了内网访问(比如:internal.com),然后又部署了一个前端项目,请问前端项目api请求要怎么设置? 我使用http://internal.com/api/xx访问时,提示 contentInt.js:1 Mixed Content: The page at 'https://xxx.com/#/login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://internal.com/admin/login'. This request has been blocked; the content must be served over HTTPS. 是要https访问吗?
环境ID:"prod-2gvp877md13cac48" 照着laravel的模版写了个新的Dockerfile 在本地调试访问正常使用,但是在云托管上构建完访问公网域名 显示welcome to nginx
我使用云托管时,使用一键部署创建了 django 服务,然后希望能 push 到 gitee 用于后续编辑代码,结果发现我进入 webshell 后,没有 apt , git 等指令,请问我要如何操作,才能编辑我的代码?
哪个是跨域错误