File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -880,8 +880,26 @@ func (u *User) ExtractToken(key string) (string, bool) {
880
880
}
881
881
882
882
switch key {
883
+ case Dingtalk :
884
+ ret := gjson .GetBytes (bs , DingtalkKey )
885
+ return ret .String (), ret .Exists ()
886
+ case Wecom :
887
+ ret := gjson .GetBytes (bs , WecomKey )
888
+ return ret .String (), ret .Exists ()
889
+ case Feishu , FeishuCard :
890
+ ret := gjson .GetBytes (bs , FeishuKey )
891
+ return ret .String (), ret .Exists ()
892
+ case Mm :
893
+ ret := gjson .GetBytes (bs , MmKey )
894
+ return ret .String (), ret .Exists ()
895
+ case Telegram :
896
+ ret := gjson .GetBytes (bs , TelegramKey )
897
+ return ret .String (), ret .Exists ()
883
898
case Email :
884
899
return u .Email , u .Email != ""
900
+ case Lark , LarkCard :
901
+ ret := gjson .GetBytes (bs , LarkKey )
902
+ return ret .String (), ret .Exists ()
885
903
case Phone :
886
904
return u .Phone , u .Phone != ""
887
905
default :
You can’t perform that action at this time.
0 commit comments