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

examples/emed_web 无法运行 #65

Open
nifflin opened this issue Sep 11, 2018 · 2 comments
Open

examples/emed_web 无法运行 #65

nifflin opened this issue Sep 11, 2018 · 2 comments

Comments

@nifflin
Copy link

nifflin commented Sep 11, 2018

报错 open /public/gdJLVy36up==.jpg: permission denied

有个办法可以避免报错,就是自己创建public文件夹而不是由wechat-go去创建,但是还是改一下这个问题比较好。

@songtianyi
Copy link
Owner

是最近发现的嘛,权限已经改成 0777 了呀。你要确保,rrframework是更新后的

@songtianyi
Copy link
Owner

rrframework已经转移给另外一个组织继续开发了,短时间内会不可用,我铁侠代码。

// Create a LocalDiskStorage instance
func CreateLocalDiskStorage(dir string) StorageWrapper {
	// create dir
	if _, err := os.Stat(dir); os.IsNotExist(err) {
		_ = os.MkdirAll(dir, 0777)
	}
	// check dir
	s := &LocalDiskStorage{
		Dir: strings.TrimSuffix(dir, "/"),
	}
	return s
}

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

2 participants