Browse Source

增加小程序推送的权限获取

master
1913812@qq.com 2 years ago
parent
commit
9f8469f599
  1. 4
      app.js
  2. 4
      utils/common.js

4
app.js

@ -42,6 +42,10 @@ App({
that.goIndex(code, iv, encryptedData, pid) that.goIndex(code, iv, encryptedData, pid)
} }
}) })
wx.requestSubscribeMessage({
tmplIds: ['FY8B3pEGK11WVhnNO6JGDQNnGVDZnXDvS9yAwxB7vRM'],
success (res) { }
})
// wx.getSetting({ // wx.getSetting({
// success: setting => { // success: setting => {
wx.login({ wx.login({

4
utils/common.js

@ -1,7 +1,7 @@
// var HOST_URI = 'http://192.168.0.109:8088'; // var HOST_URI = 'http://192.168.0.109:8088';
// var HOST_URI = 'http://192.168.0.104:8088'; // var HOST_URI = 'http://192.168.0.104:8088';
//var HOST_URI = 'https://api.tuleduo.cn'; var HOST_URI = 'https://api.tuleduo.cn';
var HOST_URI = 'http://127.0.0.1:8088'; //var HOST_URI = 'http://127.0.0.1:8088';

Loading…
Cancel
Save