Note/网站文章/小屋图床搭配+PicGo.md

145 lines
4.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 小屋图床搭配+PicGo+Typora
## 1.注册小屋账号并验证
首先进入网站[小屋图床](https://lsky.hhdxw.top/)
注册账号
![6b7b37424b84c0f57c71a25f47ef5f4e](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697522139.png)
输入账号需要时是可以使用的邮箱后面需要验证
账号hh298255@163.com
密码hh298255
![image-20231017214600239](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697550360.png)
注册完成后需要登录进入首页激活账号
![image-20231017215022504](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697550622.png)
收到邮件如下,点击链接去授权图床
![image-20231017215247572](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697550767.png)
右侧登录后不显示提示激活表示激活账号完成
![image-20231017215022504](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697550622.png)
## 2.测试上传照片
下面测试照片上传
1.首先点击上传照片
2.然后点击上传选择文件
3.点击上传
![image-20231017215702486](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697551022.png)
稍作等待,出现上传完成以及链接代表完成上传
![image-20231017215828562](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697551109.png)
检查是否可以正常查看,点击我的照片可以正常看到照片代表完成检测
![image-20231017215930489](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697551170.png)
## 3.安装PicGo插件
[下载链接](https://alist.hhdxw.top/%E5%AE%89%E8%A3%85%E5%8C%85/%E7%94%B5%E8%84%91%E8%BD%AF%E4%BB%B6/%E5%BA%94%E7%94%A8%E8%BD%AF%E4%BB%B6/PicGo),下载对应版本并安装
![image-20231017221431809](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552072.png)
打开软件后选择插件设置,搜索 `lankong`然后安装插件
![image-20231017221559569](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552159.png)
然后在PicGo设置中打开下面三个
![image-20231017221728395](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552248.png)
然后设置图床配置(`Auth Token`步骤4将获取其他按照如图选择,不填则为空)
```
https://lsky.hhdxw.top
```
![image-20231017221848056](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552328.png)
获取到`Auth Token`填入后,点击确定并设置为默认图床
## 4.获取上传token
想要通过PicGO上传照片就需要通过api进行上传接下来我们进行获取token
![image-20231017220524276](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697551524.png)
打开测试[apipost工具网站](https://v7.apipost.cn/),点击新街Http接口
![image-20231017220333567](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697551413.png)
1.选择请求方式为POST
2.申请token的URl
```
https://lsky.hhdxw.top/api/v1/tokens
```
3.邮箱和密码均为注册时邮箱密码
然后点击发送可以获得`token`,复制
![image-20231017220650937](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697551611.png)
然后拼接`token`
```
Bearer
```
在上述后面添加得到的`Auth Token`结果如下(`Bearer`和`token`中间有一个空格)
```
Bearer 3|YLkG4Q5Hzb352j4CxvE0mvAmLh2oNWJsYhblwrEo
```
将结果填入上面步骤3最后的Auth Token中
## 5.配置PicGo并测试
然后点击上传区,点击选择照片进行上传
![image-20231017222232492](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552552.png)
然后在相册中可以看到上传的照片
![image-20231017222338097](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552618.png)
表示完成上传以及测试
## 6.搭配Typora
打开Typora设置点击图像
1.插入照片选择上传图片
2.设置上传服务为PicGo
3.点击验证上传服务
![image-20231017222517312](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552717.png)
可以看到正确上传照片完成验证服务
![image-20231017222658317](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552818.png)
接下来打开一篇文章截屏一张照片直接粘贴在文章中看到如下链接照片的url链接代表已经上传到云端这样你写的md文档在不同电脑上网络前提就可以打开了
![image-20231017222814102](https://lsky.hhdxw.top/imghub/2023/10/image-202310171697552894.png)
以上就是全部的内容,喜欢的话欢迎大家来点个赞