Esempio n. 1
0
        public static ResultMo <(long id, int authType)> GetTokenDetail(string appSource, string tokenStr)
        {
            var tokenDetail = MemberShiper.GetTokenDetail(tokenSecret, tokenStr);

            var tokenSplit = tokenDetail.Split('|');

            return(new ResultMo <ValueTuple <long, int> >((tokenSplit[0].ToInt64(), tokenSplit[1].ToInt32())));
        }
Esempio n. 2
0
        public static ResultMo <(long id, int authType)> GetTokenDetail(string appSource, string tokenStr)
        {
            var secreateKeyRes = ApiSourceKeyUtil.GetAppSecretKey(appSource);

            if (!secreateKeyRes.IsSuccess)
            {
                return(secreateKeyRes.ConvertToResultOnly <(long id, int authType)>());
            }

            var tokenDetail = MemberShiper.GetTokenDetail(secreateKeyRes.Data, tokenStr);

            var tokenSplit = tokenDetail.Split('|');

            return(new ResultMo <ValueTuple <long, int> >((tokenSplit[0].ToInt64(), tokenSplit[1].ToInt32())));
        }