• 大小: 80.5MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2022-11-13
  • 语言: C#
  • 标签: ASP.NET  

资源简介

利用ASP.NET开发的网上商城,包括数据库文件与项目,经测试可正常运行,功能比较完善

资源截图

代码片段和文件信息

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  2017-10-05 11:29  SuperShopping\API\bin\Debug\API.dll

     文件     161280  2017-10-05 11:29  SuperShopping\API\bin\Debug\API.pdb

     文件      45056  2017-10-05 11:29  SuperShopping\API\bin\Debug\BLL.dll

     文件     294400  2017-10-05 11:29  SuperShopping\API\bin\Debug\BLL.pdb

     文件      59392  2017-10-05 11:29  SuperShopping\API\bin\Debug\Common.dll

     文件     159232  2017-10-05 11:29  SuperShopping\API\bin\Debug\Common.pdb

     文件     214528  2017-10-05 11:29  SuperShopping\API\bin\Debug\DAL.dll

     文件     417280  2017-10-05 11:29  SuperShopping\API\bin\Debug\DAL.pdb

     文件      17920  2017-10-05 11:29  SuperShopping\API\bin\Debug\DBUtility.dll

     文件      52736  2017-10-05 11:29  SuperShopping\API\bin\Debug\DBUtility.pdb

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

     文件      67072  2017-10-05 11:29  SuperShopping\API\bin\Debug\Model.dll

     文件     495104  2017-10-05 11:29  SuperShopping\API\bin\Debug\Model.pdb

     文件    1247910  2017-08-08 19:41  SuperShopping\API\bin\源码必读.pdf

     文件       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

     文件    1247910  2017-08-08 19:41  SuperShopping\API\OAuth\源码必读.pdf

     文件       7090  2017-10-05 11:29  SuperShopping\API\obj\Debug\API.csproj.FileListAbsolute.txt

     文件      92989  2017-10-05 11:29  SuperShopping\API\obj\Debug\API.csprojResolveAssemblyReference.cache

     文件      30720  2017-10-05 11:29  SuperShopping\API\obj\Debug\API.dll

     文件     161280  2017-10-05 11:29  SuperShopping\API\obj\Debug\API.pdb

     文件       6318  2017-10-05 11:25  SuperShopping\API\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件      21157  2014-11-27 10:23  SuperShopping\API\obj\Debug\ResolveAssemblyReference.cache

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

评论

共有 条评论