个人案例
- 小程序在 Pc 和 iPad 设置自动横屏无效?
app.json { "pages": [ "pages/index/index" ], "window": { "backgroundColor": "#F6F6F6", "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#F6F6F6", "navigationBarTitleText": "", "navigationBarTextStyle": "black", "pageOrientation": "auto" }, "sitemapLocation": "sitemap.json", "style": "v2", "lazyCodeLoading": "requiredComponents", "resizable": true } index.wxml <match-media min-width="300" max-width="600"> <view>当页面宽度在 300 ~ 600 px 之间且横屏时展示这里</view> </match-media> <match-media min-height="400" orientation="landscape"> <view>当页面高度不小于 400 px 且屏幕方向为纵向时展示这里</view> </match-media>
2024-02-04 - 小程序如何在 Pc 和 iPad 设置自动横屏?
小程序如何在 Pc 和 iPad 设置自动横屏,在手机端不允许横屏。
2024-02-03 - 云开发索引只能创建5个吗?
云开发索引只能创建5个吗?超过5创建后不显示。
2023-11-17 - wx.chooseMedia 是否可以提供文件名?
wx.chooseMedia 是否可以提供文件名。 例如做图片拼接或多图OCR识别,如果没有文件名,不好判断图片是否重复。
2023-11-15 - 有没有稳定的商品条码查询API,求推荐?
有没有稳定的商品条码查询API,求推荐?
2023-11-01 - 小程序云函数如何执行超过59秒的耗时操作?
小程序云函数如何执行超过59秒的耗时操作? 希望调用云函数成功后就返回 ctx.body = { data: "Success" }; 然后继续执行 chatAi()。 现在遇到的问题是返回后chatAi()不执行了。 // 云函数入口函数 exports.main = async (event, context) => { const wxContext = cloud.getWXContext(); const app = new TcbRouter({ event }); app.use(async (ctx, next) => { ctx.data = {}; await next(); }); app.router("UpdateReport", async (ctx, next) => { try { const { access_token } = await queryAccessToken(); const { user_id, reports_id, category_id, output, reports_type, categorys, text: extract, date, } = event.value; const object = { access_token, type: reports_type, output, input: extract || "", }; ctx.body = { data: "Success" }; chatAi( "https://zrmprpsglplhnhyeh.lambda-url.ap-southeast-1.on.aws/", object ); } catch (error) { console.error("Error in UpdateReport:", error); ctx.body = { data: error }; } }); async function chatAi(url, object) { try { await axios.post(url, object); } catch (error) { throw new Error("error" + error); } } return app.serve(); };
2023-10-03 - editor 组件中的内容无法复制粘贴?
editor 组件复制粘贴内容时,光标会失去焦点,键盘收起。无法实现复制粘贴。
2023-09-25 - 关于大模型备案?
用腾讯云或亚马逊云部署微调过的 Llama 2 是否可以申请深度合成服务算法备案
2023-09-09 - 备案,电子公告服务需要什么前置审批?
备案,电子公告服务需要什么前置审批? 前置审批类别中没有电子公告服务所需要点相关内容。
2023-09-06 - 有没有管事的,出来解释一下为什么国内大模型会被禁?
你说禁用国外ChatGPT我理解,难道你们把所有的大模型都定义成ChatGPT了吗,那条法律规定连国内的大模型也被禁用。你们不要利用垄断地位为所欲为,如果禁用国内、国外所有大模型,请拿出相关法律文件。 我们第一版审核,说是用了ChatGPT,我们提出异议并上传了,我们调用“智谱ai”的相关证明,还是被拒。联系客服,和不识字一样,只会复制黏贴一句话“小程序暂不支持开展ChatGPT服务”。是我没说明白,还是你们审核人员不识字。
2023-06-16