xcx 4 лет назад
Родитель
Сommit
1fde82be24
1 измененных файлов: 5 добавлений и 3 удалений
  1. 5
    3
      src/app.js

+ 5
- 3
src/app.js Просмотреть файл

5
 class App extends Component {
5
 class App extends Component {
6
 
6
 
7
   onLaunch () {
7
   onLaunch () {
8
-    wx.setBackgroundFetchToken({
9
-      token: 'wxe44244d1a5ea3364'
10
-    })
8
+    // let Params = {}
9
+    // if (wx.getStorageSync('openid')) {
10
+    //   Params.token = wx.getStorageSync('openid')
11
+    // }
12
+    wx.setBackgroundFetchToken({ token: 'first' })
11
     wx.getBackgroundFetchData({
13
     wx.getBackgroundFetchData({
12
       fetchType: 'pre',
14
       fetchType: 'pre',
13
       success (res) {
15
       success (res) {