|
@@ -109,16 +109,32 @@ function shareTargetPicker() {
|
|
|
redistitle = data.title;
|
|
|
console.log(redistitle);
|
|
|
console.log(redisdata);
|
|
|
+ console.log('測試');
|
|
|
|
|
|
+ /* Test */
|
|
|
liff.shareTargetPicker([
|
|
|
- createFlexMessageData()
|
|
|
+ {
|
|
|
+ type: "text",
|
|
|
+ text: "Hello, World!"
|
|
|
+ }
|
|
|
])
|
|
|
- .then(() => {
|
|
|
- alert("Shared to the friend(s) you picked");
|
|
|
+ .then(
|
|
|
+ console.log("ShareTargetPicker was launched")
|
|
|
+ ).catch(function (res) {
|
|
|
+ alert(res);
|
|
|
+ console.log("Failed to launch ShareTargetPicker", res)
|
|
|
})
|
|
|
- .catch(function (res) {
|
|
|
- alert('發送錯誤', res);
|
|
|
- });
|
|
|
+
|
|
|
+ // liff
|
|
|
+ // .shareTargetPicker([
|
|
|
+ // createFlexMessageData()
|
|
|
+ // ])
|
|
|
+ // .then(() => {
|
|
|
+ // alert("Shared to the friend(s) you picked");
|
|
|
+ // })
|
|
|
+ // .catch(function(res) {
|
|
|
+ // alert(res);
|
|
|
+ // });
|
|
|
|
|
|
});
|
|
|
-}
|
|
|
+}
|