ifanrx / hydrogen-js-sdk Goto Github PK
View Code? Open in Web Editor NEW知晓云 Serverless JS SDK
Home Page: https://cloud.minapp.com
License: Apache License 2.0
知晓云 Serverless JS SDK
Home Page: https://cloud.minapp.com
License: Apache License 2.0
Hi,你好,我最近在使用知晓云开发小程序,遇到了一个问题:我开发的是一个日程小程序,用户可以订阅一个某一个日程,但是我不想在用户订阅的时候就发送模板消息,而是让用户选择在什么时候发送通知。但是我看了文档没有搞懂该怎样实现,还是说知晓云暂时只支持创建数据时立即发送呢?谢谢解答。
1.0.0.11版本没有非压缩的sdk.dev.js文件了吗?
在 chooseImage 之后,调用 uploadFile 会报错,报错信息如下:
thirdScriptError
Cannot read property 'replace' of undefined;at pages/add_page_basic/add_page_basic onAddLogoTap function;at api chooseImage success callback function
TypeError: Cannot read property 'replace' of undefined
at Object.u [as format] (http://924940195.appservice.open.weixin.qq.com/libs/sdk-v1.0.5.js:1:31601)
at Object.uploadFile (http://924940195.appservice.open.weixin.qq.com/libs/sdk-v1.0.5.js:1:23105)
at success (http://924940195.appservice.open.weixin.qq.com/pages/add_page_basic/add_page_basic.js:95:23)
at Object.success (http://924940195.appservice.open.weixin.qq.com/WAService.js:3:7587)
at .<anonymous> (http://924940195.appservice.open.weixin.qq.com/WAService.js:4:20493)
at .<anonymous> (http://924940195.appservice.open.weixin.qq.com/asdebug.js:1:15314)
at http://924940195.appservice.open.weixin.qq.com/WAService.js:3:7587
这个报错,不仅是在小程序的编辑器里会出现,在实际设备上也依然有这个错(上传文件部分的代码已经按照文档上的直接拷贝过来的依然报错);
代码如下:
wx.chooseImage({
count: 1,
success: res => {
console.log('choose image ==>', res);
this.setData({
logoTmpPath: res.tempFilePaths[0]
});
let params = {};
let tempFilePaths = res.tempFilePaths;
params.filePath = tempFilePaths;
wx.BaaS.uploadFile(params).then(ret => {
console.log('upload logo ==>', ret);
}).catch(err => {
console.error('upload logo ==>', err);
})
}
})
其中,wx.chooseImage 是可以正常得到文件路径的,res.tempFilePaths 的值如下:
['wxfile://tmp_924940195o6zAJs4ki4xY9Vb4e9qCHbxsXp-U482a55e8fcb97e266ea662bc352aa49e.jpg']
Hello.
The sdk is working great.
But I want to know how to query.
I want your reply.
懵逼了,知晓云api在苹果电脑上 created_at 返回的是数据库的时间格式,怎么在windows上就返回时间戳了???
Hi 开发者你好,
我在TypeScript的微信小程序项目中试图调用wx.BaaS.auth.updateUserInfo
接口, 发现baas.d.ts
声明文件中auth
类型下并未收录该方法。GitHub Actions Workflow 生成的doc里面也没有收录
错误提示:
module "sdk-v1.0.5.js" is not defined;at App lifeCycleMethod onLaunch function
Error: module "sdk-v1.0.5.js" is not defined
sdk-v1.0.5.js和app.js同在根目录
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.