diff --git a/app/services/users/synchronization_service.rb b/app/services/users/synchronization_service.rb index 032df144..fede5bd6 100644 --- a/app/services/users/synchronization_service.rb +++ b/app/services/users/synchronization_service.rb @@ -18,7 +18,7 @@ class Users::SynchronizationService def sync_to_smart_doaction uri = URI("http://smart.doaction.tech/smartApi/callback/mulan/project/favorite") http = Net::HTTP.new(uri.host, uri.port) - req = Net::HTTP::Post.new(uri.path, initheader = {'Content-Type' => 'text/plain;charset=utf-8'}) + req = Net::HTTP::Post.new(uri.path, initheader = {'Content-Type' => 'application/json; charset=utf-8'}) req.body = @data.to_json res = http.request(req) body = res.body @@ -32,7 +32,7 @@ class Users::SynchronizationService projectUrl:"https://code.mulanos.cn/#{@target.owner.login}/#{@target.name}", projectTitle: @target.name, projectDesc: @target.description, - operateTime: Time.now.to_i, + operateTime: Time.now.to_i * 1000, } end