Commit ad90ee0e9f7fa59c686bb4ed9b7ca5d3e8e06d2b
1 parent
e9a47fc7
Exists in
master
Add js_ticket, request_url to jssign_package
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
lib/dingtalk/client.rb
@@ -38,6 +38,8 @@ module Dingtalk | @@ -38,6 +38,8 @@ module Dingtalk | ||
38 | str = "jsapi_ticket=#{base.js_ticket}&noncestr=#{the_nonce}×tamp=#{the_timestamp}&url=#{CGI.unescape(request_url)}" | 38 | str = "jsapi_ticket=#{base.js_ticket}&noncestr=#{the_nonce}×tamp=#{the_timestamp}&url=#{CGI.unescape(request_url)}" |
39 | signature = Digest::SHA1.hexdigest(str) | 39 | signature = Digest::SHA1.hexdigest(str) |
40 | { | 40 | { |
41 | + js_ticket: base.js_ticket, | ||
42 | + request_url: request_url, | ||
41 | corp_id: @corp_id, | 43 | corp_id: @corp_id, |
42 | timeStamp: the_timestamp, | 44 | timeStamp: the_timestamp, |
43 | nonceStr: the_nonce, | 45 | nonceStr: the_nonce, |