{"id":858,"date":"2026-07-11T22:12:20","date_gmt":"2026-07-11T14:12:20","guid":{"rendered":"http:\/\/www.longxiapro.com\/?p=858"},"modified":"2026-07-11T22:12:20","modified_gmt":"2026-07-11T14:12:20","slug":"ruheyong-ai-miaojishengchengwucuo-json-peizhi","status":"publish","type":"post","link":"https:\/\/www.longxiapro.com\/index.php\/858\/","title":{"rendered":"\u5982\u4f55\u7528 AI \u79d2\u7ea7\u751f\u6210\u65e0\u9519 JSON \u914d\u7f6e"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728 Shopify \u4e3b\u9898\u5f00\u53d1\u4e2d\uff0c<code>{% schema %}<\/code>&nbsp;\u662f\u8fde\u63a5\u540e\u53f0 Theme Editor \u4e0e\u524d\u53f0 Liquid \u6e32\u67d3\u7684\u6838\u5fc3\u6865\u6881\u3002\u4f46\u7e41\u7410\u7684 JSON \u683c\u5f0f\u3001\u4e25\u683c\u7684\u8bed\u6cd5\u89c4\u5219\uff08\u5982\u4e0d\u80fd\u6709\u6ce8\u91ca\u3001\u9017\u53f7\u9650\u5236\uff09\u4ee5\u53ca&nbsp;<code>settings<\/code>&nbsp;\u4e0e&nbsp;<code>blocks<\/code>&nbsp;\u7684\u5d4c\u5957\u903b\u8f91\uff0c\u5f80\u5f80\u8ba9\u5f00\u53d1\u8005\u5934\u75bc\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u7ed3\u5408 AI \u80fd\u529b\u7684\u5177\u4f53\u843d\u5730\u6b65\u9aa4\uff0c\u5e2e\u52a9\u4f60\u4ece\u67b6\u6784\u8bbe\u8ba1\u5230 Debug \u5168\u7a0b\u63d0\u6548\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e00\u6b65\uff1a\u5229\u7528 AI \u5feb\u901f\u751f\u6210\u6807\u51c6 Schema \u67b6\u6784<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u8981\u624b\u52a8\u6572\u6bcf\u4e00\u884c JSON\u3002\u4f60\u53ef\u4ee5\u5229\u7528 AI \u6839\u636e\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0\u76f4\u63a5\u751f\u6210\u7b26\u5408 Shopify \u89c4\u8303\u7684 Schema \u4ee3\u7801\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u843d\u5730\u64cd\u4f5c<\/strong>\uff1a\u5411 AI \u53d1\u9001\u7ed3\u6784\u5316\u63d0\u793a\u8bcd\u3002<\/li>\n\n\n\n<li><strong>AI \u63d0\u793a\u8bcd\u793a\u4f8b<\/strong>\uff1a\u201c\u6211\u6b63\u5728\u5f00\u53d1\u4e00\u4e2a Shopify Section\uff0c\u9700\u8981\u4e00\u4e2a\u540d\u4e3a\u2018\u56fe\u6587\u6df7\u6392\u2019\u7684\u6a21\u5757\u3002\u8bf7\u5e2e\u6211\u751f\u6210 {% schema %} \u4ee3\u7801\u3002<br>\u8981\u6c42\uff1a\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Settings \u5305\u542b\uff1a\u80cc\u666f\u8272\uff08\u9ed8\u8ba4\u767d\u8272\uff09\u3001\u5e03\u5c40\u9009\u62e9\uff08\u5de6\u56fe\u53f3\u6587\/\u53f3\u56fe\u5de6\u6587\uff09\u3002<\/li>\n\n\n\n<li>Blocks \u652f\u6301\u52a8\u6001\u6dfb\u52a0\uff1a\u6807\u9898\uff08text\u7c7b\u578b\uff09\u3001\u63cf\u8ff0\uff08richtext\u7c7b\u578b\uff09\u3001\u6309\u94ae\uff08\u5305\u542b\u6587\u5b57\u3001\u94fe\u63a5\u3001\u80cc\u666f\u8272\u3001\u6587\u5b57\u8272\uff09\u3002<\/li>\n\n\n\n<li>\u8bf7\u786e\u4fdd JSON \u683c\u5f0f\u4e25\u683c\u6b63\u786e\uff0c\u4e0d\u8981\u5305\u542b\u6ce8\u91ca\uff0cdefault \u7c7b\u578b\u8981\u5339\u914d\u3002\u201d<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AI \u4ef7\u503c<\/strong>\uff1aAI \u80fd\u77ac\u95f4\u5904\u7406\u590d\u6742\u7684\u5d4c\u5957\u7ed3\u6784\uff0c\u5e76\u786e\u4fdd&nbsp;<code>type<\/code>\u3001<code>id<\/code>\u3001<code>label<\/code>&nbsp;\u548c&nbsp;<code>default<\/code>&nbsp;\u7684\u5bf9\u5e94\u5173\u7cfb\u4e0d\u51fa\u9519\uff0c\u76f4\u63a5\u7701\u53bb 80% \u7684\u57fa\u7840\u7f16\u7801\u65f6\u95f4\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e8c\u6b65\uff1aAI \u8f85\u52a9 Debug \u4e0e JSON \u6821\u9a8c<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u4f60\u9047\u5230\u201cJSON \u65e0\u6548\u201d\u6216\u201c\u7ed3\u6784\u63cf\u8ff0\u6807\u7b7e\u4e2d\u7684 JSON \u65e0\u6548\u201d\u62a5\u9519\u65f6\uff0cAI \u662f\u6700\u597d\u7684\u7ea0\u9519\u5458\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5e38\u89c1\u9519\u8bef\u573a\u666f<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528\u4e86\u5355\u5f15\u53f7\u00a0<code>'<\/code>\u00a0\u800c\u975e\u53cc\u5f15\u53f7\u00a0<code>\"<\/code>\u3002<\/li>\n\n\n\n<li>\u6700\u540e\u4e00\u4e2a\u5c5e\u6027\u540e\u591a\u52a0\u4e86\u9017\u53f7\u3002<\/li>\n\n\n\n<li><code>color<\/code>\u00a0\u7c7b\u578b\u7684 default \u586b\u4e86\u6587\u5b57\u800c\u975e\u8272\u7801\uff08\u5982\u00a0<code>\"Shop Now\"<\/code>\u00a0\u800c\u975e\u00a0<code>\"#000000\"<\/code>\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u843d\u5730\u64cd\u4f5c<\/strong>\uff1a\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\u590d\u5236\u62a5\u9519\u7684 Schema \u4ee3\u7801\u3002<\/li>\n\n\n\n<li><strong>AI \u63d0\u793a\u8bcd<\/strong>\uff1a\u201c\u8fd9\u6bb5 Shopify Schema \u4ee3\u7801\u62a5\u9519\u2018JSON \u65e0\u6548\u2019\uff0c\u8bf7\u5e2e\u6211\u68c0\u67e5\u8bed\u6cd5\u9519\u8bef\uff0c\u7279\u522b\u662f\u9017\u53f7\u3001\u5f15\u53f7\u548c default \u503c\u7684\u7c7b\u578b\u662f\u5426\u5339\u914d\u3002\u201d<\/li>\n\n\n\n<li>AI \u4f1a\u7cbe\u51c6\u5b9a\u4f4d\u5230\u662f\u54ea\u4e00\u884c\u5c11\u4e86\u9017\u53f7\u6216\u7c7b\u578b\u4e0d\u5339\u914d\uff0c\u5e76\u7ed9\u51fa\u4fee\u590d\u540e\u7684\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e09\u6b65\uff1a\u7406\u6e05 Settings \u4e0e Blocks \u7684 Liquid \u53d6\u503c\u903b\u8f91<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f88\u591a\u5f00\u53d1\u8005\u5bb9\u6613\u6df7\u6dc6&nbsp;<code>section.settings<\/code>&nbsp;\u548c&nbsp;<code>block.settings<\/code>&nbsp;\u7684\u53d6\u503c\u8def\u5f84\u3002AI \u53ef\u4ee5\u5e2e\u4f60\u751f\u6210\u5bf9\u5e94\u7684\u524d\u53f0 Liquid \u6e32\u67d3\u4ee3\u7801\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u843d\u5730\u64cd\u4f5c<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>AI \u63d0\u793a\u8bcd<\/strong>\uff1a\u201c\u57fa\u4e8e\u4e0a\u9762\u7684 Schema\uff0c\u8bf7\u5199\u51fa\u524d\u53f0 Liquid \u6e32\u67d3\u4ee3\u7801\u3002\u6ce8\u610f\uff1aSettings \u7684\u503c\u76f4\u63a5\u7528 section.settings \u83b7\u53d6\uff1bBlocks \u9700\u8981\u904d\u5386\u00a0<code>section.blocks<\/code>\uff0c\u5e76\u4f7f\u7528\u00a0<code>case block.type<\/code>\u00a0\u6765\u5206\u522b\u6e32\u67d3\u6807\u9898\u3001\u63cf\u8ff0\u548c\u6309\u94ae\u3002\u6309\u94ae\u9700\u8981\u8f93\u51fa\u5185\u8054\u6837\u5f0f\u63a7\u5236\u80cc\u666f\u8272\u548c\u6587\u5b57\u8272\u3002\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AI \u4ef7\u503c<\/strong>\uff1aAI \u80fd\u51c6\u786e\u751f\u6210&nbsp;<code>{% for block in section.blocks %}<\/code>&nbsp;\u5faa\u73af\u548c&nbsp;<code>{% case %}<\/code>&nbsp;\u903b\u8f91\uff0c\u786e\u4fdd\u4f60\u6b63\u786e\u83b7\u53d6&nbsp;<code>block.settings.button_bg_color<\/code>&nbsp;\u7b49\u53d8\u91cf\uff0c\u907f\u514d\u524d\u53f0\u7a7a\u767d\u4e0d\u663e\u793a\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u56db\u6b65\uff1aAI \u4f18\u5316 Type \u7c7b\u578b\u914d\u7f6e<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Shopify \u63d0\u4f9b\u4e86\u591a\u79cd&nbsp;<code>type<\/code>\uff08\u5982&nbsp;<code>image_picker<\/code>,&nbsp;<code>url<\/code>,&nbsp;<code>range<\/code>,&nbsp;<code>select<\/code>\uff09\uff0cAI \u53ef\u4ee5\u5e2e\u4f60\u9009\u62e9\u6700\u5408\u9002\u7684\u7c7b\u578b\u5e76\u8865\u5168\u53c2\u6570\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u843d\u5730\u573a\u666f<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>\u4f60\u9700\u8981\u4e00\u4e2a\u95f4\u8ddd\u8bbe\u7f6e\u3002<\/li>\n\n\n\n<li><strong>AI \u63d0\u793a\u8bcd<\/strong>\uff1a\u201c\u5e2e\u6211\u5199\u4e00\u4e2a range \u7c7b\u578b\u7684 Schema \u8bbe\u7f6e\uff0c\u7528\u4e8e\u63a7\u5236 Padding Top\u3002\u6700\u5c0f\u503c 0\uff0c\u6700\u5927\u503c 100\uff0c\u6b65\u957f 4\uff0c\u5355\u4f4d px\uff0c\u9ed8\u8ba4\u503c 40\u3002\u201d<\/li>\n\n\n\n<li>AI \u4f1a\u8f93\u51fa\u5b8c\u6574\u7684 JSON \u5bf9\u8c61\uff0c\u5305\u62ec\u00a0<code>min<\/code>,\u00a0<code>max<\/code>,\u00a0<code>step<\/code>,\u00a0<code>unit<\/code>\u00a0\u7b49\u5bb9\u6613\u9057\u6f0f\u7684\u53c2\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u7b2c\u4e94\u6b65\uff1a\u6784\u5efa\u53ef\u590d\u7528\u7684\u201cButton Block\u201d\u7ec4\u4ef6<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u6587\u6863\u4e2d\u7279\u522b\u63d0\u5230\uff0c\u5c06\u6309\u94ae\u6587\u5b57\u3001\u94fe\u63a5\u3001\u989c\u8272\u5c01\u88c5\u5728\u4e00\u4e2a Block \u4e2d\u662f\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u843d\u5730\u64cd\u4f5c<\/strong>\uff1a<br>\u8ba9 AI \u5e2e\u4f60\u5c01\u88c5\u4e00\u4e2a\u901a\u7528\u7684\u201c\u6309\u94ae Block\u201d\u4ee3\u7801\u7247\u6bb5\uff0c\u4ee5\u540e\u5728\u4efb\u4f55 Section \u5f00\u53d1\u4e2d\u76f4\u63a5\u8c03\u7528\u3002\n<ul class=\"wp-block-list\">\n<li><strong>AI \u63d0\u793a\u8bcd<\/strong>\uff1a\u201c\u8bf7\u7ed9\u6211\u4e00\u4e2a\u6807\u51c6\u7684 Shopify Button Block Schema \u4ee3\u7801\uff0c\u5305\u542b\u6309\u94ae\u6587\u5b57\u3001\u94fe\u63a5\u3001\u80cc\u666f\u8272\uff08\u9ed8\u8ba4\u9ed1\uff09\u3001\u6587\u5b57\u8272\uff08\u9ed8\u8ba4\u767d\uff09\u3002\u540c\u65f6\u7ed9\u51fa\u5bf9\u5e94\u7684 Liquid \u4ee3\u7801\uff0c\u8981\u6c42\u5305\u542b\u5224\u65ad\u6309\u94ae\u6587\u5b57\u662f\u5426\u4e3a\u7a7a\u7684\u903b\u8f91\u3002\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udccc \u6838\u5fc3\u603b\u7ed3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u5f15\u5165 AI \u8f85\u52a9\uff0cShopify Schema \u7684\u5f00\u53d1\u6d41\u7a0b\u5c06\u4ece\u201c\u624b\u52a8\u7f16\u5199\u4e0e\u6392\u9519\u201d\u8f6c\u53d8\u4e3a\u201c\u903b\u8f91\u63cf\u8ff0\u4e0e\u751f\u6210\u201d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8868\u683c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d\u4e3a\u8868\u683c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bfc\u51fa\u4e3a\u56fe\u7247<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">\u5f00\u53d1\u9636\u6bb5<\/th><th class=\"has-text-align-left\" data-align=\"left\">\u4f20\u7edf\u75db\u70b9<\/th><th class=\"has-text-align-left\" data-align=\"left\">AI \u843d\u5730\u89e3\u51b3\u65b9\u6848<\/th><\/tr><\/thead><tbody><tr><td><strong>\u67b6\u6784\u8bbe\u8ba1<\/strong><\/td><td>\u8bb0\u5fc6 JSON \u7ed3\u6784\uff0c\u5bb9\u6613\u6f0f\u5199&nbsp;<code>presets<\/code><\/td><td>\u7528\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0\u9700\u6c42\uff0cAI \u751f\u6210\u5b8c\u6574 JSON \u9aa8\u67b6<\/td><\/tr><tr><td><strong>\u7f16\u7801\u5b9e\u73b0<\/strong><\/td><td>\u6df7\u6dc6&nbsp;<code>settings<\/code>&nbsp;\u4e0e&nbsp;<code>blocks<\/code>&nbsp;\u7684\u53d6\u503c<\/td><td>AI \u751f\u6210\u5bf9\u5e94\u7684 Liquid \u904d\u5386\u4e0e\u53d6\u503c\u4ee3\u7801<\/td><\/tr><tr><td><strong>\u8c03\u8bd5\u6392\u9519<\/strong><\/td><td>\u96be\u4ee5\u53d1\u73b0\u7ec6\u5fae\u7684\u9017\u53f7\u6216\u5f15\u53f7\u9519\u8bef<\/td><td>AI \u5feb\u901f\u626b\u63cf\u5e76\u4fee\u590d JSON \u8bed\u6cd5\u9519\u8bef<\/td><\/tr><tr><td><strong>\u7c7b\u578b\u914d\u7f6e<\/strong><\/td><td>\u8bb0\u4e0d\u4f4f&nbsp;<code>range<\/code>&nbsp;\u6216&nbsp;<code>select<\/code>&nbsp;\u7684\u53c2\u6570\u7ec6\u8282<\/td><td>AI \u8865\u5168&nbsp;<code>min\/max\/step<\/code>&nbsp;\u6216&nbsp;<code>options<\/code>&nbsp;\u6570\u7ec4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e00\u53e5\u8bdd\u5efa\u8bae<\/strong>\uff1a\u628a AI \u5f53\u4f5c\u4f60\u7684\u201cJSON \u8bed\u6cd5\u68c0\u67e5\u5458\u201d\u548c\u201cLiquid \u903b\u8f91\u751f\u6210\u5668\u201d\uff0c\u4f60\u53ea\u9700\u8981\u4e13\u6ce8\u4e8e\u8bbe\u8ba1\u5546\u5bb6\u7684\u7f16\u8f91\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Shopify \u4e3b\u9898\u5f00\u53d1\u4e2d\uff0c{% schema %}&nbsp;\u662f\u8fde\u63a5\u540e\u53f0 Theme Editor \u4e0e\u524d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-858","post","type-post","status-publish","format-standard","hentry","category-aizhinengxitong"],"_links":{"self":[{"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/posts\/858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/comments?post=858"}],"version-history":[{"count":1,"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/posts\/858\/revisions"}],"predecessor-version":[{"id":859,"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/posts\/858\/revisions\/859"}],"wp:attachment":[{"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/media?parent=858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/categories?post=858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.longxiapro.com\/index.php\/wp-json\/wp\/v2\/tags?post=858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}