|
@@ -396,6 +396,7 @@ $(document).ready(function () {
|
|
|
});
|
|
|
|
|
|
$(".qrcode").click(function () {
|
|
|
+ /*
|
|
|
liff.scanCode().then(result => {
|
|
|
// e.g. result = { value: "Hello LIFF app!" }
|
|
|
alert(JSON.stringify(result)); // test
|
|
@@ -404,16 +405,17 @@ $(document).ready(function () {
|
|
|
alert(JSON.stringify(err)); // test
|
|
|
console.log(JSON.stringify(err));
|
|
|
});
|
|
|
- /*
|
|
|
+ */
|
|
|
+
|
|
|
// scanCodeV2 call
|
|
|
liff.scanCodeV2().then(result => {
|
|
|
// e.g. result = { value: "Hello LIFF app!" }
|
|
|
+ alert(JSON.stringify(result)); // test
|
|
|
$('#address').val(result.value);
|
|
|
}).catch(err => {
|
|
|
- alert(err); // test
|
|
|
- console.log(err);
|
|
|
+ alert(JSON.stringify(err)); // test
|
|
|
+ console.log(JSON.stringify(err));
|
|
|
});
|
|
|
- */
|
|
|
});
|
|
|
});
|
|
|
</script>
|