微信云开发官网
1
在开发一个用户余额提现功能,但是发现微信云开发中似乎并未提供,难道还要基于云开发再集成证书开发对应的提现功能吗?
为什么在云后台点击去使用按钮没反应,没有跳转到网页云后台? [图片]
[图片] 为什么我安装不了云模板呢?[图片]这样安装也不行,[图片]这里安装还是不行? 云模板使用有什么限制吗?我现在用的是个人账号appid,
stable version 1.6 win64,已清理缓存无效,创建新的云开发小程序后,点击云开发,弹出页面无显示内容
[图片]
打不开云开发
代码片段: [图片] 错误日志: [图片]
云开发的数据模型怎么导出呀~!!!
//云函数代码 exports.main = async (event, context) => { try { const anyNumJason = anyNum(32); // 32位随机字符串 const outTradeNo = generateOutTradeNo(32); // 不超过32位订单号 console.log('订单号:', outTradeNo, '长度:', outTradeNo.length); const res = await cloud.cloudPay.unifiedOrder({ "body": "小秋TIT店-超市", "outTradeNo": outTradeNo, "spbillCreateIp": "127.0.0.1", "subMchId": "-------", "totalFee": 1, "envId": "-------", // 确保环境ID正确 "functionName": "pay_cb", "nonceStr": anyNumJason, "tradeType": "JSAPI" }); return res.result; } catch (error) { console.error('支付失败:', error); return { error: '支付请求失败', details: error.message }; } } //小程序代码 wx.cloud.callFunction({ name: 'pay', data: { }, success: res => { console.log("获取字符参数成功",res); }, fail: console.error, }) 订单号字段怎么修改都没有用,不填空着、自己手动写也不行,原方案是根据订单生成函数来生成订单号,每次查看小程序传过去的参数,ou_trade_no字段也是没有问题的,可是就是报[图片]
内容管理无法打开,相应设置已完成但就是打不开[图片]
腾讯云开发,微信小程序如何注册登录关联到云后台账号,注册后的用户自动调价到云后台用户管理的用户中
想要知道一下 平台提供的数据库的版本是什么
调用wx.cloud.login后,提示is not a function 开发者工具:RC 1.06.2503281 project.config.json中: miniprogramVersion": "2.24.0" app.js中: // 引入云开发 SDK 并初始化 if (!wx.cloud) { console.error('请使用 2.2.3 或以上的基础库以使用云能力') } else { wx.cloud.init({ env: 'yun环境ID', // 云开发环境 ID traceUser: true }); console.error('SDKVersion=',wx.getSystemInfoSync().SDKVersion) console.log('wx.cloud 对象:', wx.cloud) // 检查是否包含 login 方法 } 此时跟踪出来的SDKVersion= 3.8.0,wx.cloud对象是Proxy{这里面有很多内容},问元宝AI,他说是wx.cloud被代理了。 怀疑是插件问题,在开发者工具-工具-插件-模拟器插件里有一个“多端插件开发插件0.0.14”显示已安装。但在里面没找到删除或禁用插件的地方。 另外云开发第一回用,不知道是不是云开发环境有啥问题,请问如何排查。
https://developers.weixin.qq.com/miniprogram/dev/[图片]wxcloudservice/wxcloud/guide/extensions/cms/guidance.html
发现云开发调用次数爆炸多,但是数一数云数据库查询、云函数调用,根本没有这么多次。 想知道“调用次数”就近用在哪儿了。
求助,云开发绑定微信支付商户号,授权失败,那微信支付应该怎么接入?
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/B2b_store_assistant.htmlhttps://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/B2b_store_assistant.html 申请商户号报名技术服务费优惠活动支付与退款(接口) 小程序接口 wx.requestCommonPayment(Object object)查看账单 请求地址: https://api.weixin.qq.com/retail/B2b/downloadbill?access_token=ACCESSTOKEN&pay_sig=xxxxx 请求方式:POST提现分账合单支付 查询订单接口说明 请求地址:https://api.weixin.qq.com/retail/B2b/getorder?access_token=ACCESS_TOKEN&pay_sig=xxxxx 请求方式:POST 例如,微信小程序支付, // 下单结果 orderResult = await $w.cloud.callFunction await cloud.callFunction // 唤起微信支付组件,完成支付 wx.requestPayment ... B2b支付呢? 盼回!
用云开发的AI功能时,好像会让云开发的调用次数爆炸。例如我用 await model.streamText(...) 向AI发送消息,然后用 for await (let str of res.textStream) 流式接受消息,一轮对话下来,云开发调用次数暴涨几十次,这样还没说几句话,调用次数就上千了,感觉AI对话消耗的调用次数也太多了!比调用云函数、云数据库多多了! 难道AI流式输出的时候,每蹦出一个词都算做一次调用? 调用次数到底怎么统计的?
小程序也绑定了云环境,其他支付那些功能都写完了没有问题,就在生成二维码这个地方提示没权限,我也检查了长度没有超出32个字符 我的日志如下: 返回结果 {"success":false,"error":"errCode: -604101 function has no permission to call this API | errMsg: system error: error code: -604101"} 日志 START RequestId: d0024bdd-3d12-4b8b-9a61-b7695bcf85f3 Event RequestId: d0024bdd-3d12-4b8b-9a61-b7695bcf85f3 2025-04-04T11:08:00.757Z 生成小程序码失败: CloudSDKError: errCode: -604101 function has no permission to call this API | errMsg: system error: error code: -604101 at callGeneralOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:487:27) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async callWXOpenAPI (/var/user/node_modules/wx-server-sdk/index.js:2364:28) at async exports.main (/var/user/index.js:12:20) { errCode: -604101, errMsg: 'system error: error code: -604101' } Response RequestId: d0024bdd-3d12-4b8b-9a61-b7695bcf85f3 RetMsg: {"success":false,"error":"errCode: -604101 function has no permission to call this API | errMsg: system error: error code: -604101"} END RequestId: d0024bdd-3d12-4b8b-9a61-b7695bcf85f3 Report RequestId: d0024bdd-3d12-4b8b-9a61-b7695bcf85f3 Duration: 180ms Memory: 256MB MemUsage: 22.613281MB 代码如下: // 云函数入口文件 const cloud = require('wx-server-sdk') cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV }) // 云函数入口函数 exports.main = async (event, context) => { try { const wxContext = cloud.getWXContext() const openid = event.openid || wxContext.OPENID // 生成小程序码(简化版) const result = await cloud.openapi.wxacode.getUnlimited({ scene: `i=${openid}`, // 缩短键名以适应32字符限制 page: 'pages/index/index', width: 430, // 使用更大的尺寸便于扫码 isHyaline: false, // 不透明背景 autoColor: false, // 不使用自动配色 lineColor: { r: 0, g: 0, b: 0 } // 黑色线条 }) // 上传到云存储 const uploadResult = await cloud.uploadFile({ cloudPath: `qrcodes/${openid}_${Date.now()}.jpg`, fileContent: result.buffer }) // 获取临时访问链接 const fileResult = await cloud.getTempFileURL({ fileList: [uploadResult.fileID] }) return { success: true, fileID: uploadResult.fileID, tempFileURL: fileResult.fileList[0].tempFileURL, } } catch (error) { console.error('生成小程序码失败:', error) return { success: false, error: error.message } } }
小程序示例
小程序官方示例Demo,包含云开发示例。
小程序示例
扫码体验
云开发不支持商家转账能力的,只能自己对接支付侧的接口