This commit is contained in:
yystopf 2024-09-03 10:49:09 +08:00
parent 9ec3f4655e
commit 46124f7f15
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace :import_from_chandao do
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["Cookie"] = "autologin_trustie=#{Token.get_or_create_permanent_login_token(assigner, 'autologin')}"
request["Cookie"] = "autologin_trustie=#{Token.get_or_create_permanent_login_token(assigner, 'autologin')&.value}"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"pmsProjectId": pm_project_id,