Commit fcae65f7e5584da59f8fb225dda4e07fbb0fb8c3
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 | 1 | module Dingtalk |
2 | 2 | class Client |
3 | 3 | attr_accessor :corp_id |
4 | + attr_accessor :permanent_code | |
4 | 5 | |
5 | 6 | def decrypt(echo_str) |
6 | 7 | content, status = Dingtalk::Prpcrypt.decrypt(aes_key, echo_str, Dingtalk.suite_key) |
... | ... | @@ -43,7 +44,7 @@ module Dingtalk |
43 | 44 | end |
44 | 45 | |
45 | 46 | def base |
46 | - Api::Base.new(@corp_id) | |
47 | + Api::Base.new(@corp_id, @permanent_code) | |
47 | 48 | end |
48 | 49 | |
49 | 50 | def suite | ... | ... |