mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
♻️ HTTP client 升级跟进
This commit is contained in:
parent
19d6c50535
commit
fbddab69eb
3 changed files with 15 additions and 15 deletions
|
|
@ -76,7 +76,7 @@ func Export2Liandi(id string) (err error) {
|
|||
result := gulu.Ret.NewResult()
|
||||
request := httpclient.NewCloudRequest30s()
|
||||
resp, getErr := request.
|
||||
SetResult(result).
|
||||
SetSuccessResult(result).
|
||||
SetCookies(&http.Cookie{Name: "symphony", Value: Conf.User.UserToken}).
|
||||
Get(util.LiandiServer + "/api/v2/article/update/" + articleId)
|
||||
if nil != getErr {
|
||||
|
|
@ -115,7 +115,7 @@ func Export2Liandi(id string) (err error) {
|
|||
result := gulu.Ret.NewResult()
|
||||
request := httpclient.NewCloudRequest30s()
|
||||
request = request.
|
||||
SetResult(result).
|
||||
SetSuccessResult(result).
|
||||
SetCookies(&http.Cookie{Name: "symphony", Value: Conf.User.UserToken}).
|
||||
SetBody(map[string]interface{}{
|
||||
"articleTitle": title,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue