{"id":20948,"date":"2026-06-10T18:08:07","date_gmt":"2026-06-10T11:08:07","guid":{"rendered":"https:\/\/xpeng.co.th\/?page_id=20948"},"modified":"2026-06-11T17:59:30","modified_gmt":"2026-06-11T10:59:30","slug":"qr-mgc-expo","status":"publish","type":"page","link":"https:\/\/xpeng.co.th\/th\/qr-mgc-expo\/","title":{"rendered":"QR MGC Expo"},"content":{"rendered":"<p><script>\n      \/\/ ===== CONFIG: Xpeng QR mapping (\u0e41\u0e01\u0e49\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48) =====\n      const QR_MAP = {\n        1: \"https:\/\/line.me\/R\/app\/2009569415-Dw7EZsyv?brand=xpeng&obj=1\",\n        2: \"https:\/\/line.me\/R\/app\/2009569415-Dw7EZsyv?brand=xpeng&obj=2\"\n      };\n      const FALLBACK_URL = \"https:\/\/xpeng.co.th\/\";\n      \/\/ =============================================\n      const params = new URLSearchParams(window.location.search);\n      const qr = params.get(\"qr\");\n      const targetBase = QR_MAP[qr] || FALLBACK_URL;\n      const timestamp = Date.now();\n      console.log(\"qr:\", qr, \"target:\", targetBase, \"ts:\", timestamp);\n      dataLayer.push({\n        event: \"pre_scan_qr\",\n        datetime: timestamp,\n      });\n      setTimeout(function () {\n        const sep = targetBase.includes(\"?\") ? \"&\" : \"?\";\n        window.location.href =\n          targetBase + sep + \"datetime=\" + timestamp + \"&qr=\" + (qr || \"\");\n      }, 1000);\n<\/script><\/p>","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","inline_featured_image":false,"footnotes":""},"class_list":["post-20948","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/pages\/20948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/comments?post=20948"}],"version-history":[{"count":4,"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/pages\/20948\/revisions"}],"predecessor-version":[{"id":20956,"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/pages\/20948\/revisions\/20956"}],"wp:attachment":[{"href":"https:\/\/xpeng.co.th\/th\/wp-json\/wp\/v2\/media?parent=20948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}