|
@@ -112,6 +112,8 @@ function nft_event() {
|
|
|
var jsonString = JSON.stringify(jsonInfo);
|
|
|
console.log(jsonString);
|
|
|
|
|
|
+ $('#userId').text(context.userId);
|
|
|
+
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: 'https://ark.cards:8228/event',
|
|
@@ -154,7 +156,6 @@ $(document).ready(function () {
|
|
|
console.log(profile);
|
|
|
|
|
|
userId = context.userId;
|
|
|
- $('#userId').text(context.userId);
|
|
|
|
|
|
// login
|
|
|
if (!liff.isLoggedIn()) {
|
|
@@ -185,7 +186,7 @@ $(document).ready(function () {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- nft_event();
|
|
|
+ nft_event(userId);
|
|
|
});
|
|
|
});
|
|
|
</script>
|