{"id":151,"date":"2026-07-30T01:51:50","date_gmt":"2026-07-30T09:51:50","guid":{"rendered":"https:\/\/oou.tw\/?p=151"},"modified":"2026-07-30T22:51:25","modified_gmt":"2026-07-31T06:51:25","slug":"rewardpoints","status":"publish","type":"post","link":"https:\/\/oou.tw\/index.php\/2026\/07\/30\/rewardpoints\/","title":{"rendered":"\u96c6\u9ede\u5361"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">LINE LIFF Reward Points<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u7576\u6642\u60f3\u88fd\u4f5c\u96c6\u9ede\u5361\u6240\u4ee5\u5c31\u958b\u59cb\u5beb\u4e86<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">codex\u662f\u5f8c\u7e8c\u5bebMD\u624d\u4f7f\u7528\u7684\uff5e\uff08\u771f\u597d\u7528\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Github:<a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\">https:\/\/github.com\/firekilin\/LineLiffRewardPoints<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#line-liff-reward-points\"><\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u4e00\u5957\u4ee5 LINE LIFF \u70ba\u5165\u53e3\u7684\u96fb\u5b50\u96c6\u9ede\u5361\u7cfb\u7d71\uff0c\u652f\u63f4\u5efa\u7acb\u5361\u7247\u3001\u767c\u9ede\u3001\u6536\u9ede\u3001\u8f49\u9001\u3001\u514c\u63db\u8207\u5354\u4f5c\u8005\u7ba1\u7406\u3002<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/blob\/main\/public\/img\/%E9%9B%86%E9%BB%9E%E5%8D%A1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/raw\/main\/public\/img\/%E9%9B%86%E9%BB%9E%E5%8D%A1.png\" alt=\"LINE LIFF Reward Points \u96c6\u9ede\u5361\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5c08\u6848\u73fe\u6cc1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#%E5%B0%88%E6%A1%88%E7%8F%BE%E6%B3%81\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9805\u76ee<\/th><th>\u8aaa\u660e<\/th><\/tr><\/thead><tbody><tr><td>\u5f8c\u7aef<\/td><td>Node.js\u3001Express 4\u3001EJS<\/td><\/tr><tr><td>\u524d\u7aef<\/td><td>jQuery\u3001Bootstrap 5\u3001Canvas<\/td><\/tr><tr><td>\u8eab\u5206\u9a57\u8b49<\/td><td>LINE LIFF access token \u2192 LINE Profile API \u2192 server session<\/td><\/tr><tr><td>\u8cc7\u6599\u5eab<\/td><td>MySQL\uff08schema\uff1a<code>reward_point<\/code>\uff09<\/td><\/tr><tr><td>\u5716\u7247<\/td><td>\u80cc\u666f\u3001\u5370\u7ae0\u3001\u514c\u63db\u5716\u5b58\u65bc MySQL BLOB<\/td><\/tr><tr><td>QR Code<\/td><td>\u52a0\u5165\u5354\u4f5c\u8005\u3001\u767c\u9ede\u3001\u8f49\u9001\u8207\u514c\u63db<\/td><\/tr><tr><td>\u6e2c\u8a66<\/td><td>\u5c1a\u672a\u5efa\u7acb\u81ea\u52d5\u5316\u6e2c\u8a66<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u8005\u8207\u89d2\u8272<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#%E4%BD%BF%E7%94%A8%E8%80%85%E8%88%87%E8%A7%92%E8%89%B2\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u89d2\u8272<\/th><th>\u4e3b\u8981\u80fd\u529b<\/th><\/tr><\/thead><tbody><tr><td>\u96c6\u9ede\u5361\u5efa\u7acb\u8005<\/td><td>\u5efa\u7acb\uff0f\u522a\u9664\u5361\u7247\u3001\u9080\u8acb\u5354\u4f5c\u8005\u3001\u767c\u9ede\u3001\u67e5\u95b1\u5168\u90e8\u767c\u9ede\u7d00\u9304\u3001\u6838\u92b7\u514c\u63db<\/td><\/tr><tr><td>\u767c\u9ede\u5354\u4f5c\u8005<\/td><td>\u67e5\u770b\u88ab\u6388\u6b0a\u7684\u5361\u7247\u3001\u767c\u9ede\u3001\u67e5\u770b\u81ea\u5df1\u7684\u64cd\u4f5c\u7d00\u9304<\/td><\/tr><tr><td>\u96c6\u9ede\u6703\u54e1<\/td><td>\u9818\u9ede\u3001\u67e5\u770b\u5361\u7247\u8207\u660e\u7d30\u3001\u8f49\u9001\u9ede\u6578\u3001\u63d0\u51fa\u514c\u63db<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u6838\u5fc3\u6d41\u7a0b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#%E6%A0%B8%E5%BF%83%E6%B5%81%E7%A8%8B\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">https:\/\/viewscreen.githubusercontent.com\/markdown\/mermaid?docs_host=https%3A%2F%2Fdocs.github.com&#038;color_mode=light#b31122a2-119b-439b-91a1-5284b5252286<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7cfb\u7d71\u67b6\u69cb<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#%E7%B3%BB%E7%B5%B1%E6%9E%B6%E6%A7%8B\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">https:\/\/viewscreen.githubusercontent.com\/markdown\/mermaid?docs_host=https%3A%2F%2Fdocs.github.com&#038;color_mode=light#f0059e2c-ed41-4ab0-bf85-e3fd46265635<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u4ef6\u5c0e\u89bd<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#%E6%96%87%E4%BB%B6%E5%B0%8E%E8%A6%BD\"><\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/blob\/main\/docs\/SYSTEM_ANALYSIS.md\">\u7cfb\u7d71\u76e4\u9ede\u8207 PM \u5206\u6790<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/blob\/main\/docs\/DB_SPEC.md\">\u8cc7\u6599\u5eab\u898f\u683c<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/blob\/main\/doc\/database.xlsx\">\u65e2\u6709\u8cc7\u6599\u5eab Excel<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/blob\/main\/AGENTS.md\">\u5c08\u6848 Agent \u898f\u5247<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/blob\/main\/.agents\/skills\/audit-reward-points\/SKILL.md\">\u7a0b\u5f0f\u76e4\u9ede Skill<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u76ee\u524d\u6700\u91cd\u8981\u7684\u6c7a\u7b56<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#%E7%9B%AE%E5%89%8D%E6%9C%80%E9%87%8D%E8%A6%81%E7%9A%84%E6%B1%BA%E7%AD%96\"><\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9ede\u6578\u662f\u5426\u63a1\u300c\u4e8b\u4ef6\u5e33\u672c\u300d\u6a21\u578b\uff1a\u76ee\u524d\u9918\u984d\u7531\u591a\u7b46\u00a0<code>point<\/code>\u00a0\u4e8b\u4ef6\u5373\u6642\u8a08\u7b97\uff0c\u61c9\u6b63\u5f0f\u5b9a\u7fa9\u72c0\u614b\u6a5f\u8207\u4e0d\u53ef\u8b8a\u66f4\u539f\u5247\u3002<\/li>\n\n\n\n<li>QR Code \u662f\u5426\u9700\u8981\u5230\u671f\u6642\u9593\u3001\u55ae\u6b21\u9818\u53d6\u8207\u9632\u91cd\u653e\uff1a\u73fe\u6cc1\u00a0<code>pointExp<\/code>\u00a0\u672a\u5be6\u969b\u6aa2\u67e5\u3002<\/li>\n\n\n\n<li>\u522a\u9664\u5361\u7247\u662f\u5426\u5141\u8a31\u5be6\u9ad4\u522a\u9664\uff1a\u73fe\u6cc1\u6703\u4f9d\u5e8f\u522a\u9664\u56db\u5f35\u8868\uff0c\u5931\u6557\u6642\u53ef\u80fd\u7559\u4e0b\u4e0d\u4e00\u81f4\u8cc7\u6599\u3002<\/li>\n\n\n\n<li>\u5716\u7247\u662f\u5426\u7e7c\u7e8c\u653e MySQL BLOB\uff1a\u6703\u5f71\u97ff DB \u5099\u4efd\u3001\u6548\u80fd\u8207\u5bb9\u91cf\u7ba1\u7406\u3002<\/li>\n\n\n\n<li>\u6b0a\u9650\u6a21\u578b\u662f\u5426\u5340\u5206\u5efa\u7acb\u8005\u8207\u5354\u4f5c\u8005\uff1a\u90e8\u5206 API \u5df2\u6aa2\u67e5\uff0c\u90e8\u5206\u67e5\u8a62\u689d\u4ef6\u4ecd\u9700\u6536\u6582\u3002<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u555f\u52d5\u524d\u7f6e\u689d\u4ef6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints#%E5%95%9F%E5%8B%95%E5%89%8D%E7%BD%AE%E6%A2%9D%E4%BB%B6\"><\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6e96\u5099 MySQL schema\u00a0<code>reward_point<\/code>\u3002<\/li>\n\n\n\n<li>\u4f9d\u00a0<a href=\"https:\/\/github.com\/firekilin\/LineLiffRewardPoints\/blob\/main\/docs\/DB_SPEC.md\">DB \u898f\u683c<\/a>\u00a0\u5efa\u7acb\u8cc7\u6599\u8868\u3002<\/li>\n\n\n\n<li>\u7531\u00a0<code>config\/sample.json<\/code>\u00a0\u5efa\u7acb\u74b0\u5883\u8a2d\u5b9a\uff0c\u586b\u5165 DB \u8207 LINE LIFF \u8cc7\u8a0a\u3002<\/li>\n\n\n\n<li>\u5b89\u88dd\u5957\u4ef6\u5f8c\u57f7\u884c\u00a0<code>npm start<\/code>\u3002<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5b89\u5168\u63d0\u9192\uff1a\u6b63\u5f0f\u74b0\u5883\u4e0d\u61c9\u6cbf\u7528\u7a0b\u5f0f\u5167\u7684 session\uff0fcookie \u7bc4\u4f8b\u5bc6\u9470\uff1b\u8acb\u6539\u7531\u79d8\u5bc6\u7ba1\u7406\u6216\u74b0\u5883\u8b8a\u6578\u6ce8\u5165\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LINE LIFF Reward Points \u7576\u6642\u60f3\u88fd\u4f5c\u96c6\u9ede\u5361\u6240\u4ee5\u5c31\u958b\u59cb\u5beb\u4e86 codex\u662f\u5f8c\u7e8c\u5bebMD\u624d\u4f7f\u7528\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":152,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[5,1],"tags":[8],"class_list":["post-151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-note","category-uncategorized","tag-8"],"blocksy_meta":[],"uagb_featured_image_src":{"full":["https:\/\/oou.tw\/wp-content\/uploads\/2026\/07\/\u96c6\u9ede\u5361.png",1180,680,false],"thumbnail":["https:\/\/oou.tw\/wp-content\/uploads\/2026\/07\/\u96c6\u9ede\u5361-150x150.png",150,150,true],"medium":["https:\/\/oou.tw\/wp-content\/uploads\/2026\/07\/\u96c6\u9ede\u5361-300x173.png",300,173,true],"medium_large":["https:\/\/oou.tw\/wp-content\/uploads\/2026\/07\/\u96c6\u9ede\u5361-768x443.png",768,443,true],"large":["https:\/\/oou.tw\/wp-content\/uploads\/2026\/07\/\u96c6\u9ede\u5361-1024x590.png",1024,590,true],"1536x1536":["https:\/\/oou.tw\/wp-content\/uploads\/2026\/07\/\u96c6\u9ede\u5361.png",1180,680,false],"2048x2048":["https:\/\/oou.tw\/wp-content\/uploads\/2026\/07\/\u96c6\u9ede\u5361.png",1180,680,false]},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/oou.tw\/index.php\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"LINE LIFF Reward Points \u7576\u6642\u60f3\u88fd\u4f5c\u96c6\u9ede\u5361\u6240\u4ee5\u5c31\u958b\u59cb\u5beb\u4e86 codex\u662f\u5f8c\u7e8c\u5bebMD\u624d\u4f7f\u7528\u7684...","_links":{"self":[{"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":3,"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":156,"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/posts\/151\/revisions\/156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/media\/152"}],"wp:attachment":[{"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oou.tw\/index.php\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}