资源简介

vs2010 + .Net4.0 数据库是mssql2005以上 还原bak文件即可 前台账号admin1 密码是admin123 后台账号:admin 密码:admin123

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using Common;
using LitJson;

namespace API.OAuth
{
    public class feixin_helper
    {
        public feixin_helper()
        { }

        /// 
        /// 取得Access Token
        /// 

        /// 临时Authorization Code
        /// Dictionary
        public static Dictionaryject> get_access_token(string code)
        {
            //获得配置信息
            oauth_config config = oauth_helper.get_config(“feixin“);
            string send_url = “https://i.feixin.10086.cn/oauth2/access_token?grant_type=authorization_code&code=“ + code + “&client_id=“ + config.oauth_app_id + “&client_secret=“ + config.oauth_app_key + “&redirect_uri=“ + Utils.UrlEncode(config.return_uri);
            //发送并接受返回值
            string result = Utils.HttpGet(send_url);
            if (result.Contains(“error“))
            {
                return null;
            }
            try
            {
                Dictionaryject> dic = JsonMapper.Toobjectject>>(result);
                return dic;
            }
            catch
            {
                return null;
            }
        }

        /// 
        /// 获取登录用户自己的详细信息
        /// 

        /// 临时的Access Token
        /// JsonData
        public static Dictionaryject> get_info(string access_token)
        {
            string send_url = “https://i.feixin.10086.cn/api/user.json?access_token=“ + access_token;
            //发送并接受返回值
            string result = Utils.HttpGet(send_url);
            if (result.Contains(“error“))
            {
                return null;
            }
            try
            {
                Dictionaryject> dic = JsonMapper.Toobjectject>>(result);
                return dic;
            }
            catch
            {
                return null;
            }
        }

    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3891  2014-11-25 21:59  SuperShopping\API\API.csproj

     文件      30720  2018-12-23 16:16  SuperShopping\API\bin\Debug\API.dll

     文件     173568  2018-12-23 16:16  SuperShopping\API\bin\Debug\API.pdb

     文件      45056  2018-12-23 16:16  SuperShopping\API\bin\Debug\BLL.dll

     文件     312832  2018-12-23 16:16  SuperShopping\API\bin\Debug\BLL.pdb

     文件      59392  2018-12-23 16:16  SuperShopping\API\bin\Debug\Common.dll

     文件     167424  2018-12-23 16:16  SuperShopping\API\bin\Debug\Common.pdb

     文件     214016  2018-12-23 16:16  SuperShopping\API\bin\Debug\DAL.dll

     文件     435712  2018-12-23 16:16  SuperShopping\API\bin\Debug\DAL.pdb

     文件      17920  2018-12-23 16:16  SuperShopping\API\bin\Debug\DBUtility.dll

     文件      54784  2018-12-23 16:16  SuperShopping\API\bin\Debug\DBUtility.pdb

     文件      49664  2010-07-28 14:32  SuperShopping\API\bin\Debug\LitJSON.dll

     文件      67072  2018-12-23 16:16  SuperShopping\API\bin\Debug\Model.dll

     文件     517632  2018-12-23 16:16  SuperShopping\API\bin\Debug\Model.pdb

     文件       2217  2014-11-25 21:22  SuperShopping\API\OAuth\feixin_helper.cs

     文件       2571  2014-11-25 21:22  SuperShopping\API\OAuth\kaixin_helper.cs

     文件       1296  2014-11-25 21:22  SuperShopping\API\OAuth\oauth_config.cs

     文件       1190  2014-11-25 21:22  SuperShopping\API\OAuth\oauth_helper.cs

     文件       5004  2014-11-25 21:22  SuperShopping\API\OAuth\qq_helper.cs

     文件       3718  2014-11-25 21:22  SuperShopping\API\OAuth\renren_helper.cs

     文件       3456  2014-11-25 21:22  SuperShopping\API\OAuth\sina_helper.cs

     文件       2356  2014-11-25 21:22  SuperShopping\API\OAuth\taobao_helper.cs

     文件       7080  2018-12-23 16:16  SuperShopping\API\obj\Debug\API.csproj.FileListAbsolute.txt

     文件      30720  2018-12-23 16:16  SuperShopping\API\obj\Debug\API.dll

     文件     173568  2018-12-23 16:16  SuperShopping\API\obj\Debug\API.pdb

     文件       5587  2018-12-23 16:16  SuperShopping\API\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件      39906  2018-12-23 16:16  SuperShopping\API\obj\Debug\ResolveAssemblyReference.cache

     文件       4951  2014-11-25 21:22  SuperShopping\API\Payment\Alipay\AlipayConfig.cs

     文件       5889  2014-11-25 21:22  SuperShopping\API\Payment\Alipay\AlipayCore.cs

     文件       6716  2014-11-25 21:22  SuperShopping\API\Payment\Alipay\AlipayNotify.cs

............此处省略2430个文件信息

评论

共有 条评论