同步处理
Last updated
2023-07-17 10:17:39
{"value":"**\u540c\u6b65\u5904\u7406**\uff0c\u7528\u4e8e\u8ba1\u7b97\u91cf\u8f83\u5c0f\u53ef\u4ee5\u5feb\u901f\u8fd4\u56de\u7ed3\u679c\u7684\u8d44\u6e90\u5904\u7406\u573a\u666f\uff0c\u5f88\u9002\u5408\u56fe\u7247\u8d44\u6e90\u3001\u6587\u4ef6\u8d44\u6e90\u7684\u5904\u7406\u3002\u60a8\u53ef\u4ee5\u5728 **\u8bbf\u95ee\u6587\u4ef6URL** \u65f6 \uff0c\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u636e\u5904\u7406\u6307\u4ee4\uff0c\u4ee5\u76f4\u63a5\u83b7\u53d6\u5904\u7406\u540e\u7684\u7ed3\u679c\u3002\n\n- \u6bd4\u8f83\u5178\u578b\u7684\u4e00\u4e2a\u573a\u666f\u662f **\u56fe\u7247\u67e5\u770b**\uff0c\u5ba2\u6237\u7aef\u53ef\u4ee5\u4e0a\u4f20\u4e00\u5f20\u9ad8\u7cbe\u5ea6\u7684\u56fe\u7247\uff0c\u7136\u540e\u5728\u67e5\u770b\u56fe\u7247\u7684\u65f6\u5019\u6839\u636e\u5c4f\u5e55\u89c4\u683c\u751f\u6210\u7f29\u7565\u56fe\u3002\u8fd9\u6837\u65e2\u53ef\u4ee5\u660e\u663e\u964d\u4f4e\u7f51\u7edc\u6d41\u91cf\uff0c\u800c\u4e14\u53ef\u4ee5\u63d0\u9ad8\u56fe\u7247\u663e\u793a\u901f\u5ea6\uff0c\u8fd8\u80fd\u964d\u4f4e\u79fb\u52a8\u8bbe\u5907\u7684\u5185\u5b58\u5360\u7528\u3002\n\n\u4e0b\u9762\u63cf\u8ff0\u540c\u6b65\u5904\u7406\u7684\u8be6\u7ec6\u7528\u6cd5\u3002\n\n## **\u8bf7\u6c42**\n\n\n\n### \u8bf7\u6c42\u8bed\u6cd5\n\n```\nGET <imageDownloadURI>?<\u63a5\u53e3\u89c4\u683c> HTTP\/1.1\nHost: <imageDownloadHost>\n```\n\n\n\n### \u5934\u90e8\u4fe1\u606f\n\n| \u5934\u90e8\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e |\n| -------- | ---- | ---------------- |\n| Host | \u662f | \u4e0b\u8f7d\u670d\u52a1\u5668\u57df\u540d\u3002 |\n\n\n\n## **\u54cd\u5e94**\n\n\n\n### \u54cd\u5e94\u8bed\u6cd5\n\n```\nHTTP\/1.1 200 OK\nContent-Type: <imageMimeType>\n\n<imageBinaryData>\n```\n\n\n\n### \u5934\u90e8\u4fe1\u606f\n\n| \u5934\u90e8\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e |\n| ------------- | ---- | ------------------------------------------------------------ |\n| Content-Type | \u662f | MIME\u7c7b\u578b\uff0c\u6210\u529f\u65f6\u4e3a\u56fe\u7247\u7684MIME\u7c7b\u578b\uff0c\u5931\u8d25\u65f6\u4e3aapplication\/json\u3002 |\n| Cache-Control | | \u7f13\u5b58\u63a7\u5236\uff0c\u5931\u8d25\u65f6\u4e3ano-store\uff0c\u4e0d\u7f13\u5b58\u3002 |\n\n\n\n### \u54cd\u5e94\u5185\u5bb9\n\n- \u5982\u679c\u8bf7\u6c42\u6210\u529f\uff0c\u8fd4\u56de\u56fe\u7247\u7684\u4e8c\u8fdb\u5236\u6570\u636e\u3002\n- \u5982\u679c\u8bf7\u6c42\u5931\u8d25\uff0c\u8fd4\u56de\u5305\u542b\u5982\u4e0b\u5185\u5bb9\u7684 JSON \u5b57\u7b26\u4e32\uff08\u5df2\u683c\u5f0f\u5316\uff0c\u4fbf\u4e8e\u9605\u8bfb\uff09\uff1a\n\n```\n{\n \"code\": <HttpCode int>, \n \"error\": \"<ErrMsg string>\",\n}\n```\n\n| \u5b57\u6bb5\u540d\u79f0 | \u5fc5\u586b | \u8bf4\u660e |\n| -------- | ---- | ------------------------------ |\n| code | \u662f | HTTP\u72b6\u6001\u7801\uff0c\u8bf7\u53c2\u8003\u54cd\u5e94\u72b6\u6001\u7801\u3002 |\n| error | \u662f | \u4e0eHTTP\u72b6\u6001\u7801\u5bf9\u5e94\u7684\u6d88\u606f\u6587\u672c\u3002 |\n\n\n\n### \u54cd\u5e94\u72b6\u6001\u7801\n\n| HTTP\u72b6\u6001\u7801 | \u542b\u4e49 |\n| ---------- | ------------------ |\n| 200 | \u5904\u7406\u6210\u529f\u3002 |\n| 400 | \u8bf7\u6c42\u62a5\u6587\u683c\u5f0f\u9519\u8bef\u3002 |\n| 404 | \u8d44\u6e90\u4e0d\u5b58\u5728\u3002 |\n| 599 | \u670d\u52a1\u7aef\u64cd\u4f5c\u5931\u8d25\u3002 |\n\n## **\u793a\u4f8b**\n\n**\u539f\u56fe**\n\n```\nhttps:\/\/dn-odum9helk.qbox.me\/resource\/gogopher.jpg\n```\n\n**\u9488\u5bf9\u8be5\u539f\u56fe\u751f\u6210\u4e00\u5f20480x320\u5927\u5c0f\u7684\u7f29\u7565\u56fe**\n\n```\nhttps:\/\/dn-odum9helk.qbox.me\/resource\/gogopher.jpg?imageView2\/2\/w\/320\/h\/480\n```\n\n"}