{"action":"opened","issue":{"url":"https://api.github.com/repos/bmfe/eros-template/issues/52","repository_url":"https://api.github.com/repos/bmfe/eros-template","labels_url":"https://api.github.com/repos/bmfe/eros-template/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/bmfe/eros-template/issues/52/comments","events_url":"https://api.github.com/repos/bmfe/eros-template/issues/52/events","html_url":"https://github.com/bmfe/eros-template/issues/52","id":294081405,"number":52,"title":"ios 打开拦截器读取本地的gif图片不会动","user":{"login":"shawn-tangsc","id":24619820,"avatar_url":"https://avatars2.githubusercontent.com/u/24619820?v=4","gravatar_id":"","url":"https://api.github.com/users/shawn-tangsc","html_url":"https://github.com/shawn-tangsc","followers_url":"https://api.github.com/users/shawn-tangsc/followers","following_url":"https://api.github.com/users/shawn-tangsc/following{/other_user}","gists_url":"https://api.github.com/users/shawn-tangsc/gists{/gist_id}","starred_url":"https://api.github.com/users/shawn-tangsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawn-tangsc/subscriptions","organizations_url":"https://api.github.com/users/shawn-tangsc/orgs","repos_url":"https://api.github.com/users/shawn-tangsc/repos","events_url":"https://api.github.com/users/shawn-tangsc/events{/privacy}","received_events_url":"https://api.github.com/users/shawn-tangsc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-03T03:56:31Z","updated_at":"2018-02-03T03:56:31Z","closed_at":null,"author_association":"NONE","body":"### 简略的描述你的问题。\r\n关闭拦截器调用本地的资源路径的gif图片，gif不会动。\r\n打开拦截器调用调试服务器上的gif是可以动的。\r\n代码如下：\r\n```\r\n <image class=\"messageEgg\" src=\"bmlocal://assets/index/egg@2x.gif\" @click=\"annualBegin\"></image>\r\n```\r\n### 环境信息 \r\n> 例子：\r\n> * 开发平台：mac\r\n> * node 版本：v7.2.0\r\n> * npm 版本：5.6.0\r\n> * 调试类型：模拟器/真机都是\r\n> * 调试系统版本: ios 全版本 （android 没看）\r\n> * 开发工具及其版本 xcode 9\r\n\r\n### 尽可能写下你对问题的分析，你觉得可能是由于什么造成的。\r\n> 例： gif的原理是图片叠加， ios中单单用imageWithContentsOfFile 应该只会读出gif的第一张\r\n-->WXImgLoaderDefaultImpl\r\n```\r\n         NSString *imgPath = [NSString stringWithFormat:@\"%@/%@%@\",K_JS_PAGES_PATH,imgUrl.host,imgUrl.path];\r\n            \r\n            UIImage *img = [UIImage imageWithContentsOfFile:imgPath];\r\n            NSError *error = nil;\r\n            \r\n ....\r\n```\r\n建议针对.gif后缀的图片进行特殊处理。\r\n\r\n### 什么场景下会复现这个问题，复现率是多少。\r\n> 例：百分百复现，调用即复现。\r\n\r\n"}}
{"actor":{"display_login":"shawn-tangsc"}}