Commit 89a69ca5addaefdea9484f4427324376bfa7f169
1 parent
ba961891
Exists in
master
CGI.unescape url to generate js package
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/dingtalk/client.rb
... | ... | @@ -33,7 +33,7 @@ module Dingtalk |
33 | 33 | def jssign_package(request_url) |
34 | 34 | the_timestamp = timestamp |
35 | 35 | the_nonce = nonce |
36 | - str = "jsapi_ticket=#{base.js_ticket}&noncestr=#{the_nonce}×tamp=#{the_timestamp}&url=#{request_url}" | |
36 | + str = "jsapi_ticket=#{base.js_ticket}&noncestr=#{the_nonce}×tamp=#{the_timestamp}&url=#{CGI.unescape(request_url)}" | |
37 | 37 | signature = Digest::SHA1.hexdigest(str) |
38 | 38 | { |
39 | 39 | corp_id: @corp_id, | ... | ... |