Quellcode durchsuchen

「風」通行證

Mike vor 3 Jahren
Ursprung
Commit
e9155965e0
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      ArkCard-web/event.html

+ 3 - 2
ArkCard-web/event.html

@@ -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>