{"action":"created","issue":{"url":"https://api.github.com/repos/buaazp/zimg/issues/107","labels_url":"https://api.github.com/repos/buaazp/zimg/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/buaazp/zimg/issues/107/comments","events_url":"https://api.github.com/repos/buaazp/zimg/issues/107/events","html_url":"https://github.com/buaazp/zimg/issues/107","id":100211401,"number":107,"title":"建议上传增加指定MD5实现固定路径图片的功能","user":{"login":"qq528","id":13740709,"avatar_url":"https://avatars.githubusercontent.com/u/13740709?v=3","gravatar_id":"","url":"https://api.github.com/users/qq528","html_url":"https://github.com/qq528","followers_url":"https://api.github.com/users/qq528/followers","following_url":"https://api.github.com/users/qq528/following{/other_user}","gists_url":"https://api.github.com/users/qq528/gists{/gist_id}","starred_url":"https://api.github.com/users/qq528/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qq528/subscriptions","organizations_url":"https://api.github.com/users/qq528/orgs","repos_url":"https://api.github.com/users/qq528/repos","events_url":"https://api.github.com/users/qq528/events{/privacy}","received_events_url":"https://api.github.com/users/qq528/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T02:25:39Z","updated_at":"2015-08-11T03:35:45Z","closed_at":null,"body":"很感谢作者开源了那么好的zimg，在使用过程中，发现我们有大量需要固定图片路径的需求，而目前都是上传图片后通过返回图片的MD5来进行命名的，所以得数据库记录下图片路径，在应用中再去数据库中查图片路径。这个确实增加了不少麻烦和数据库的依赖。所以建议在上传的增加一个参数如md5，如果指定了参数md5（应用可以用固定的路径字符串来生成此MD5），则后端按照此md5进行图片的新增、更新等操作（注意同步更新经过处理后的图片）；如果没指定md5，则采用现有的逻辑。这样的话就可以满足用户固定图片路径的需求了。谢谢。"},"comment":{"url":"https://api.github.com/repos/buaazp/zimg/issues/comments/129691493","html_url":"https://github.com/buaazp/zimg/issues/107#issuecomment-129691493","issue_url":"https://api.github.com/repos/buaazp/zimg/issues/107","id":129691493,"user":{"login":"buaazp","id":1470377,"avatar_url":"https://avatars.githubusercontent.com/u/1470377?v=3","gravatar_id":"","url":"https://api.github.com/users/buaazp","html_url":"https://github.com/buaazp","followers_url":"https://api.github.com/users/buaazp/followers","following_url":"https://api.github.com/users/buaazp/following{/other_user}","gists_url":"https://api.github.com/users/buaazp/gists{/gist_id}","starred_url":"https://api.github.com/users/buaazp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buaazp/subscriptions","organizations_url":"https://api.github.com/users/buaazp/orgs","repos_url":"https://api.github.com/users/buaazp/repos","events_url":"https://api.github.com/users/buaazp/events{/privacy}","received_events_url":"https://api.github.com/users/buaazp/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T03:35:45Z","updated_at":"2015-08-11T03:35:45Z","body":"refer to #58 \r\n\r\ndoc from: http://zimg.buaa.us/documents/Architecture_Design_of_Image_Server/"}}