xlzy520 / picgo-plugin-smms-user

a plugin for picgo for SM.MS
MIT License
41 stars 13 forks source link

how to config picgo-core #5

Closed tjx666 closed 4 years ago

tjx666 commented 4 years ago

Config the electron client is easy, but I feel a little complicated to config the picgo-core.

xlzy520 commented 4 years ago

@tjx666 怎么说,不是很懂你的意思,是指这个插件配置复杂还是picgo core

tjx666 commented 4 years ago

TL;DR:能在 README 里面说明下怎么在 picgo-core 中配置这个插件吗?

我一般使用的是 sm.ms 图床,然后 VSCode 的 picgo 扩展可以直接导入 pic-core 的配置文件,但是我看 pic-core 的文档看得有点迷,就想作者你能不能在 README 中给出一份 picgo-core 配置这个插件的例子。

xlzy520 commented 4 years ago

@tjx666 picgo客户端有个搜索插件的地方,直接在那里搜过smms,就可以搜到了吧,然后安装重启就行了

tjx666 commented 4 years ago

我的问题是 picgo-core 怎么配置,不是 picgo,我按照官方文档的配置方式配置了但是没用:

{
  "picBed": {
    "current": "smms"
  },
  "picgoPlugins": {
    "picgo-plugin-smms-user": true
  },
  "picgo-plugin-smms-user": {
    "Authorization": "LDiubKZH5ZZX8wzpIKtcKY2q5hjAylMk"
  }
}

screenshot_2020-03-02_18-56-23

tjx666 commented 4 years ago

已解决,需要下面这样配置:

{
  "picBed": {
    "uploader": "smms-user",
    "smms-user": {
      "Authorization": "LDiubKZH5ZZX8wzpIKtcKY2q5hjAylMk"
    }
  },
  "picgoPlugins": {
    "picgo-plugin-smms-user": true
  },
  "picgo-plugin-smms-user": {}
}
xlzy520 commented 4 years ago

@tjx666 对不起,太久没用picgo了,没理解他们的区别