You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
599 B

5 years ago
//app.js
5 years ago
//导入leancloud库与后台交互
5 years ago
const AV = require('./lib/av-live-query-weapp-min');
const login = require("./model/user");
5 years ago
//初始化
AV.init({
5 years ago
appId: 'eVHYNBdT5D2lDxNj5jtJXsWT-MdYXbMMI',
appKey: 'waM3bwf1ftpsMLjRBqqVyJIQ',
5 years ago
});
5 years ago
// test Appid
// appId: 'fQCxN98zS5thYY3AceKdI8Pj-MdYXbMMI',
// appKey: 'Tdi1DcLlVYrTabFiBaA00pjj',
5 years ago
5 years ago
App({
config: {
host: 'wsw1999.xyz'
},
onLaunch () {
login().then((user) => {
console.log(user);
console.log(AV.User.current());
});
wx.cloud.init({
env: 'test-tkkvk'
})
5 years ago
}
});