From fcae65f7e5584da59f8fb225dda4e07fbb0fb8c3 Mon Sep 17 00:00:00 2001 From: Jeff Lai Date: Tue, 8 Mar 2016 17:31:51 +0800 Subject: [PATCH] Fix bug --- lib/dingtalk/client.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dingtalk/client.rb b/lib/dingtalk/client.rb index b846b08..e3084f8 100644 --- a/lib/dingtalk/client.rb +++ b/lib/dingtalk/client.rb @@ -1,6 +1,7 @@ module Dingtalk class Client attr_accessor :corp_id + attr_accessor :permanent_code def decrypt(echo_str) content, status = Dingtalk::Prpcrypt.decrypt(aes_key, echo_str, Dingtalk.suite_key) @@ -43,7 +44,7 @@ module Dingtalk end def base - Api::Base.new(@corp_id) + Api::Base.new(@corp_id, @permanent_code) end def suite -- libgit2 0.21.0