|
@@ -11,7 +11,6 @@ function Service() {
|
11
|
11
|
|
12
|
12
|
function init() {
|
13
|
13
|
console.log('GameService init')
|
14
|
|
-
|
15
|
14
|
return liffInit().then((profile) => {
|
16
|
15
|
|
17
|
16
|
// // 測試用資料
|
|
@@ -24,13 +23,16 @@ function Service() {
|
24
|
23
|
m_LineUserId = profile.userId || '';
|
25
|
24
|
m_LineName = profile.displayName || '';
|
26
|
25
|
m_LinePicture = profile.pictureUrl || '';
|
27
|
|
- m_UserModel = new UserModel( m_LineUserId);;
|
|
26
|
+ m_UserModel = new UserModel( m_LineUserId);
|
|
27
|
+
|
|
28
|
+ console.log('lineUserId:', m_LineUserId);
|
28
|
29
|
|
29
|
|
- console.log('lineUserId:', m_LineUserId)
|
|
30
|
+ if (m_LineUserId === 'U1856545fb999ec7ca759f34685e81207') {
|
|
31
|
+ var vConsole = new VConsole();
|
|
32
|
+ }
|
30
|
33
|
|
31
|
34
|
// 測試用
|
32
|
35
|
// return Promise.resolve(profile);
|
33
|
|
-
|
34
|
36
|
return profile;
|
35
|
37
|
}).catch((error) => {
|
36
|
38
|
alert('Liff Init Error \n Message:' + error.message);
|