Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动添加根目录 #3

Open
mekong opened this issue May 29, 2014 · 0 comments
Open

自动添加根目录 #3

mekong opened this issue May 29, 2014 · 0 comments

Comments

@mekong
Copy link

mekong commented May 29, 2014

若用户传入的 savekey 没有根目录,比如说“sample.jpg”,则会调用出错。
作为 SDK ,最好直接封装掉这个处理,若发现传入的参数没有带根目录则自动添加,比如:

  • 传入的参数为“sample.jpg”,则自动转换成“/sample.jpg”
  • 传入的参数为“/sample.jpg”,则保持不变,还是“/sample.jpg”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant