SyuanYu 2 years ago
parent
commit
85e4f4eaff
1 changed files with 4 additions and 3 deletions
  1. 4 3
      yuri/js/liff-functions.js

+ 4 - 3
yuri/js/liff-functions.js

@@ -76,11 +76,12 @@ function createFlexMessageData() {
 var redisdata = '';
 var redisdata = '';
 
 
 function shareTargetPicker() {
 function shareTargetPicker() {
-
+  alert('Test');
   liff.shareTargetPicker([
   liff.shareTargetPicker([
     {
     {
       'type': 'flex',
       'type': 'flex',
-      "contents": {
+      "altText": 'Test',
+      "contents": [{
         "type": "bubble",
         "type": "bubble",
         "hero": {
         "hero": {
           "type": "box",
           "type": "box",
@@ -267,7 +268,7 @@ function shareTargetPicker() {
           "flex": 0,
           "flex": 0,
           "height": "150px"
           "height": "150px"
         }
         }
-      },
+      }],
     }
     }
   ])
   ])
     .then(function (res) {
     .then(function (res) {