{"id":2770,"date":"2019-08-30T15:57:39","date_gmt":"2019-08-30T07:57:39","guid":{"rendered":"http:\/\/blog.eolinker.com\/?p=2770"},"modified":"2019-09-27T15:35:21","modified_gmt":"2019-09-27T07:35:21","slug":"eolinker%e7%ac%ac%e4%b8%89%e6%9c%9fqa%e7%ad%94%e7%96%91%e6%89%8b%e5%86%8c%e4%b8%8a%e7%ba%bf%ef%bc%81","status":"publish","type":"post","link":"http:\/\/blog.eolinker.com\/?p=2770","title":{"rendered":"EOLINKER\u7b2c\u4e09\u671fQ&#038;A\u7b54\u7591\u624b\u518c\u4e0a\u7ebf\uff01"},"content":{"rendered":"<p><a href=\"https:\/\/data.eolinker.com\/drFSGbT8ad0ec80d4b39f05cd06351efb7313d52a2ad9bd.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/drFSGbT8ad0ec80d4b39f05cd06351efb7313d52a2ad9bd.png\" alt=\"\" width=\"760\" height=\"300\" \/><\/a><\/p>\n<p>\u55e8\uff0c\u5404\u4f4d\u4eb2\u7231\u7684linker\uff0c\u6211\u4eec\u57288\u6708\u5e95\u4e0a\u7ebf\u4e86EPC(\u79c1\u6709\u4e91\u7248\u672c)\u76845.2.0\u7248\u672c\u3002\u5982\u679c\u5c0f\u4f19\u4f34\u60f3\u4f7f\u7528\u6700\u5f3a\u5927\u7684API\u7ba1\u7406\u529f\u80fd\uff0c\u53c8\u60f3\u5c06\u6570\u636e\u79bb\u7ebf\u5b58\u50a8\u5728\u4f01\u4e1a\u5185\u90e8\u7684\u670d\u52a1\u5668\u3002\u5404\u4f4d\u53ef\u4ee5\u70b9\u51fb\u00a0<a href=\"https:\/\/www.eolinker.com\/#\/survey\/applyAmsCloud\" target=\"_blank\" rel=\"noopener\" data-linktype=\"2\">\u7533\u8bf7\u8bd5\u7528<\/a>\u00a0\u79c1\u6709\u4e91\u90e8\u7f72\u4ea7\u54c1\uff0c\u5df2\u7ecf\u5728\u4f7f\u7528\u79c1\u6709\u4e91\u4ea7\u54c1\u7684\u4f01\u4e1a\u8bf7\u67e5\u770b <a href=\"http:\/\/blog.eolinker.com\/?p=2765\">EOLINKER EPC 5.2\u7248\u672c\u66f4\u65b0<\/a> \uff0c\u4e86\u89e35.2.0\u7248\u672c\u7684\u8be6\u7ec6\u66f4\u65b0\u5185\u5bb9\u3002<\/p>\n<p>9\u6708\u4efd\u5373\u5c06\u5f00\u59cb\uff0c\u7b2c\u4e09\u671fQ&amp;A\u7b54\u7591\u4e5f\u51fa\u7089\u5566\uff0c\u6bcf\u6708\u6211\u4eec\u5c06\u4ece\u5404\u4f4d\u6240\u63d0\u7684\u5de5\u5355\u4e2d\u6536\u96c6\u5927\u5bb6\u6700\u4e3a\u5173\u5fc3\u7684\u95ee\u9898\uff0c\u5e76\u7531\u6280\u672f\u4e2d\u5fc3\u63d0\u4f9b\u89e3\u7b54\uff0c\u8bbe\u7acbQ&amp;A\u4e13\u533a\uff0c\u5b9a\u671f\u4e3a\u5927\u5bb6\u7b54\u7591\u3002<\/p>\n<p>\u6211\u4eec\u6765\u770b\u770b8\u6708\u4efd\u90fd\u6709\u54ea\u4e9b\u5e38\u89c1\u95ee\u9898\uff1a<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/data.eolinker.com\/W54ltPta10f41d1b28d9fa40138409747638298dc5bd564.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/W54ltPta10f41d1b28d9fa40138409747638298dc5bd564.png\" alt=\"\" width=\"668\" height=\"156\" \/><\/a><\/p>\n<p><strong>Q\uff1a\u5982\u4f55\u626b\u63cf\u7801\u4e91\u4ee3\u7801\u6ce8\u89e3\u751f\u6210\u6587\u6863\uff1f\uff08\u529f\u80fd\u4e0a\u7ebf\u5f88\u4e45\u4e86\u8fd8\u662f\u6709\u5c0f\u4f19\u4f34\u63d0\u95ee\uff0c\u770b\u6765\u6211\u4eec\u8fd8\u5f97\u7ee7\u7eed\u52a0\u5f3a\u76f8\u5e94\u6559\u7a0b\u7684\u4ecb\u7ecd\uff09<\/strong><\/p>\n<p>A\uff1a\u4e3e\u4f8b\u8bf4\u660e<\/p>\n<p><a href=\"https:\/\/data.eolinker.com\/xK2ATFs99bed50a0c51df6155f0e3b06c68307bbfd8c950.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/xK2ATFs99bed50a0c51df6155f0e3b06c68307bbfd8c950.png\" alt=\"\" width=\"1104\" height=\"290\" \/><\/a><\/p>\n<ul>\n<li><strong>1.<\/strong><strong>\u4ee3\u7801\u4ed3\u5e93\u7c7b\u578b\uff1a<\/strong>gitee<\/li>\n<li><strong>2.\u4ee3\u7801\u4ed3\u5e93\u5730\u5740\uff1a<\/strong><a href=\"https:\/\/gitee.com\/\" data-linktype=\"2\">https:\/\/gitee.com<\/a><\/li>\n<li><strong>3.\u7a7a\u95f4\u540d\uff1a<\/strong>\u6240\u5c5e\u7a7a\u95f4\u5730\u5740\uff08\u4f01\u4e1a\u3001\u7ec4\u7ec7\u6216\u4e2a\u4eba\u7684\u5730\u5740path\uff09<\/li>\n<li><strong>4.\u4ed3\u5e93\u540d\uff1a<\/strong>\u4ee3\u7801\u6ce8\u89e3\u6240\u5728\u7684\u4ed3\u5e93\u540d\u79f0<\/li>\n<li><strong>5.\u8bbf\u95ee\u79c1\u94a5\uff1a<\/strong>\u4ed3\u5e93\u79c1\u4eba\u4ee4\u724c\uff08\u5728\u7801\u4e91\u4ed3\u5e93\u4e2d\u7684\u4e2a\u4eba\u8bbe\u7f6eSettings-&gt;\u79c1\u4eba\u4ee4\u724cAccess Tokens\u4e2d\u751f\u6210\uff09<\/li>\n<li><strong>6.\u9700\u8981\u626b\u63cf\u7684\u5206\u652f\uff1a<\/strong>master<\/li>\n<li><strong>7.\u9700\u8981\u626b\u63cf\u7684API\u76ee\u5f55\u8def\u5f84\uff1a<\/strong>\u6307\u76f8\u5bf9\u4e8e\u4ed3\u5e93\u6839\u76ee\u5f55\u7684\u8def\u5f84\uff0c\u4f8b\u5982\u6839\u76ee\u5f55\u662f<\/li>\n<\/ul>\n<p><a href=\"https:\/\/data.eolinker.com\/7EGhZ294945b412a85723a2e563105c8ed3903830d68863.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/7EGhZ294945b412a85723a2e563105c8ed3903830d68863.png\" alt=\"\" width=\"1042\" height=\"212\" \/><\/a><\/p>\n<p>\u60f3\u8981\u626b\u63cf\u7684\u76ee\u5f55\u662f<\/p>\n<p><a href=\"https:\/\/data.eolinker.com\/3QWLLem853810f7528a561ea8b8126ac71a7ad35a8b3e2e.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/3QWLLem853810f7528a561ea8b8126ac71a7ad35a8b3e2e.png\" alt=\"\" width=\"1016\" height=\"171\" \/><\/a><\/p>\n<p>\u6240\u4ee5\u586b\u5199\u7684\u662f\uff1a<strong>project\/controller<\/strong><\/p>\n<ul>\n<li><strong>8.\u9700\u8981\u626b\u63cf\u7684\u6570\u636e\u7ed3\u6784\u76ee\u5f55\u8def\u5f84\uff1a<\/strong>project\/model(\u6570\u636e\u7ed3\u6784\u8def\u5f84\u8ddf\u9700\u8981\u626b\u63cf\u751f\u6210\u7684api\u7684\u8def\u5f84\u7684\u586b\u5199\u65b9\u5f0f\u4e00\u81f4)<\/li>\n<li><strong>9.\u76ee\u6807\u8bed\u8a00\uff1a<\/strong>\u76ee\u524d\u652f\u6301php\u548cjava<\/li>\n<li><strong>10.\u6ce8\u89e3\u683c\u5f0f\uff1a<\/strong>\u9ed8\u8ba4\u4e3aSwagger2.0,\u4ee3\u7801\u6ce8\u91ca\u7f16\u5199\u7684\u683c\u5f0f\u53c2\u8003\u5b98\u65b9\u6587\u6863\u3002<\/li>\n<\/ul>\n<p><strong>Q<\/strong><strong>\uff1a\u600e\u4e48\u5f15\u7528\u5168\u5c40\u53d8\u91cf\uff1f\u4e3a\u4ec0\u4e48\u6211\u5728\u516c\u5171\u8d44\u6e90\u7ba1\u7406\u91cc-\u6d4b\u8bd5\u73af\u5883\u8bbe\u7f6e\u4e86\u5168\u5c40\u53d8\u91cf\uff0c\u5728\u6d4b\u8bd5\u65f6\u6ca1\u6709\u6548\u679c\uff1f<\/strong><\/p>\n<p>A\uff1a\u7528\u4e24\u4e2a\u82f1\u6587\u5927\u62ec\u53f7\u5c06\u53c2\u6570\u540d\u5305\u88f9\u8d77\u6765\uff0c\u5373\u53ef\u5f15\u7528\u5168\u5c40\u53d8\u91cf\uff0c\u5982\uff1a<strong>{{\u53c2\u6570\u540d}}<\/strong><\/p>\n<p><strong>\u5168\u5c40\u53d8\u91cf\u53ef\u7528\u4e8e\uff1a<\/strong><\/p>\n<ul>\n<li>1. API URL\u4e2d\u7684\u5c40\u90e8\u5730\u5740\uff0c\u4f7f\u7528\u65b9\u6cd5\u5982\uff1a<a href=\"http:\/\/www.eolinker.com\/%7b%7b%E5%8F%82%E6%95%B0%E5%90%8D%7d%7d\" data-linktype=\"2\">www.eolinker.com\/{{\u53c2\u6570\u540d}}<\/a><\/li>\n<li>2. \u8bf7\u6c42\u5934\u90e8\u7684\u53c2\u6570\u540d\u548c\u53c2\u6570\u503c<\/li>\n<li>3. \u8bf7\u6c42\u53c2\u6570\u7684\u53c2\u6570\u503c\u548c\u53c2\u6570\u503c<\/li>\n<li>4. API\u6d4b\u8bd5\u9884\u5904\u7406\uff08\u6b64\u5904\u7559\u610f\u5728\u9884\u5904\u7406\u5f15\u7528\u5168\u5c40\u53d8\u91cf\u662f\uff1aenv.globalParams\uff09<\/li>\n<li>5. API\u81ea\u52a8\u5316\u6d4b\u8bd5<\/li>\n<\/ul>\n<p><strong>\u65e0\u6548\u679c\u7684\u539f\u56e0\uff1a<\/strong><\/p>\n<ul>\n<li>1.\u8bf7\u68c0\u67e5\u662f\u5426\u5728\u6d4b\u8bd5\u754c\u9762\u53f3\u4e0a\u89d2\u5207\u6362\u4e86\u73af\u5883<\/li>\n<li>2.\u8bf7\u68c0\u67e5\u662f\u5426\u4f7f\u7528\u4e86\u4e24\u4e2a\u82f1\u6587\u82b1\u62ec\u53f7{{}}\u6765\u5f15\u7528\u5168\u5c40\u53d8\u91cf<\/li>\n<\/ul>\n<p><strong>Q\uff1a\u4e3a\u4ec0\u4e48\u6d4b\u8bd5\u65f6\u8bf7\u6c42\u5934\u90e8\u90fd\u4f1a\u589e\u52a0Content-Type?<\/strong><\/p>\n<p>A\uff1a\u76ee\u524d\u5728API\u6d4b\u8bd5\u9009\u62e9form-data\u3001json\u3001xml\u65f6\uff0cheader\u53c2\u6570\u4f1a\u81ea\u52a8\u52a0\u4e0a\u76f8\u5e94\u7684Content-Type\u5934\u90e8\uff1b\u5982\u679c\u542b\u6709\u591a\u4e2a\u76f8\u540c\u7684header\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6309\u7167\u4f18\u5148\u7ea7\u53d6\u6700\u540e\u4e00\u4e2a\u8fdb\u884c\u53d1\u9001\u3002<\/p>\n<p><strong>Q<\/strong><strong>\uff1a\u4e3a\u4ec0\u4e48\u6ce8\u518c\u767b\u5f55\u540e\u63a7\u5236\u53f0\u5de6\u4fa7\u83dc\u5355\u680f\u672a\u663e\u793a\u4efb\u4f55\u4ea7\u54c1\uff1f<\/strong><\/p>\n<p><a href=\"https:\/\/data.eolinker.com\/IqsnRhb0bb1bde6dcc7d4bb3cc27374ba092a270245325f.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/IqsnRhb0bb1bde6dcc7d4bb3cc27374ba092a270245325f.png\" alt=\"\" width=\"991\" height=\"293\" \/><\/a><\/p>\n<p>A\uff1a\u9700\u8981\u8054\u7cfb\u7ba1\u7406\u5458\u4e3a\u60a8\u7ed1\u5b9a\u4ea7\u54c1\u624d\u53ef\u770b\u5230\u4ea7\u54c1\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5982\u4f55\u7ed1\u5b9a\uff1a<\/strong>\u8fdb\u5165\u4eba\u5458\u7ba1\u7406\u754c\u9762\uff0c\u627e\u5230\u76f8\u5e94\u7684\u6210\u5458\u70b9\u51fb\u7ed1\u5b9a\u5230\u4ea7\u54c1\uff0c\u5728\u5f39\u7a97\u4e2d\u9009\u62e9\u4ea7\u54c1\u5e76\u70b9\u51fb\u7ed1\u5b9a\u6309\u94ae\u5373\u53ef\u3002\u6b64\u65f6\u6210\u5458\u5df2\u7ecf\u6210\u529f\u7ed1\u5b9a\u8be5\u4ea7\u54c1\uff0c\u5e76\u4e14\u80fd\u591f\u770b\u5230\u4ea7\u54c1\u5185\u7684\u5f00\u653e\u9879\u76ee\u3002<\/p>\n<p><a href=\"https:\/\/data.eolinker.com\/dU99qKZ6010ae348123d2c13cd628f752edbd6cf05e687a.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/dU99qKZ6010ae348123d2c13cd628f752edbd6cf05e687a.png\" alt=\"\" width=\"1074\" height=\"323\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data.eolinker.com\/JbFiEuC6224dd5b2ad8a22e7b04efe709f82824da301ce0.png\"><img loading=\"lazy\" class=\"aligncenter\" src=\"https:\/\/data.eolinker.com\/JbFiEuC6224dd5b2ad8a22e7b04efe709f82824da301ce0.png\" alt=\"\" width=\"1091\" height=\"363\" \/><\/a><\/p>\n<p>\u672c\u6708\u7cbe\u9009\u51fa\u7684Q&amp;A\u90fd\u662f\u5de5\u5355\u91cc\u63d0\u95ee\u7387\u8f83\u9ad8\u7684\u95ee\u9898\uff0c\u770b\u5b8c\u672c\u7bc7\u6587\u7ae0\u7684\u5c0f\u4f19\u4f34\u4eec\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5927\u5bb6\u89e3\u51b3\u5728\u4f7f\u7528 EOLINKER \u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898\uff0c\u5982\u679c\u8fd8\u6709\u5176\u4ed6\u95ee\u9898\uff0c\u8bf7\u8bbf\u95ee EOLINKER \u7684\u00a0<a href=\"https:\/\/help.eolinker.com\/\" data-linktype=\"2\">\u5e2e\u52a9\u4e2d\u5fc3<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u55e8\uff0c\u5404\u4f4d\u4eb2\u7231\u7684linker\uff0c\u6211\u4eec\u57288\u6708\u5e95\u4e0a\u7ebf\u4e86EPC(\u79c1\u6709\u4e91\u7248\u672c)\u76845.2.0\u7248\u672c\u3002\u5982\u679c\u5c0f\u4f19\u4f34\u60f3\u4f7f\u7528\u6700\u5f3a\u5927\u7684A [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/2770"}],"collection":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2770"}],"version-history":[{"count":5,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/2770\/revisions"}],"predecessor-version":[{"id":2886,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=\/wp\/v2\/posts\/2770\/revisions\/2886"}],"wp:attachment":[{"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2770"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.eolinker.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}