Commit fcae65f7e5584da59f8fb225dda4e07fbb0fb8c3

Authored by Jeff Lai
1 parent 16802bac
Exists in master

Fix bug

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/dingtalk/client.rb
1 module Dingtalk 1 module Dingtalk
2 class Client 2 class Client
3 attr_accessor :corp_id 3 attr_accessor :corp_id
  4 + attr_accessor :permanent_code
4 5
5 def decrypt(echo_str) 6 def decrypt(echo_str)
6 content, status = Dingtalk::Prpcrypt.decrypt(aes_key, echo_str, Dingtalk.suite_key) 7 content, status = Dingtalk::Prpcrypt.decrypt(aes_key, echo_str, Dingtalk.suite_key)
@@ -43,7 +44,7 @@ module Dingtalk @@ -43,7 +44,7 @@ module Dingtalk
43 end 44 end
44 45
45 def base 46 def base
46 - Api::Base.new(@corp_id) 47 + Api::Base.new(@corp_id, @permanent_code)
47 end 48 end
48 49
49 def suite 50 def suite