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

mac m1,授权并运行main后,终端报错 #18

Closed
JamieJustTang opened this issue Oct 31, 2022 · 1 comment
Closed

mac m1,授权并运行main后,终端报错 #18

JamieJustTang opened this issue Oct 31, 2022 · 1 comment

Comments

@JamieJustTang
Copy link

按照操作进行后发现报错,然后发现user下面的bilibili文件路径也并没有完成创建。

(base) jamie@LinkydeAir-3 Downloads % chmod a+x ./ main
(base) jamie@LinkydeAir-3 Downloads % /Users/jamie/Downloads/main 
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
main.main()
	/Users/lvzongyuan/Documents/webstormProjects/typora-plugin-bilibili/main.go:32 +0xdc5

@xlzy520
Copy link
Owner

xlzy520 commented Nov 1, 2022

假如想要命令行直接上传,需要传递token和图片链接,你没传,所以报错了。
如果用typora+这个插件的话,他也是命令行执行,但是他会传递一些参数,如下:
image

@xlzy520 xlzy520 closed this as completed Jan 6, 2023
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