• 大小: 37.59MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-29
  • 语言: C#
  • 标签: C#APP支付  

资源简介

C# 2015开发微信支付统一下单接口, 支付完成通知接口,坑了一个周终于出来了 分享给大家 最主要的坑就是APP签名 大家做的时候 为避免大家误解这个签名 我把签名工具的下载地址给大家 https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=8_5 还是不懂的话可以去看我博客 里面有对微信支付各种坑的描述 http://blog.csdn.net/hejianxiong520/article/details/78977887

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace WeiPay
{
   public class LogUtil
    {
        private static readonly object writeFile = new object();
        /// 
        /// 在本地写入错误日志
        /// 

        ///  
        public static void WriteLog(string debugstr)
        {
            lock (writeFile)
            {
                FileStream fs = null;
                StreamWriter sw = null;
                try
                {
                    string filename = DateTime.Now.ToString(“yyyy-MM-dd“) + “.txt“;
                    //服务器中日志目录
                    string folder = HttpContext.Current.Server.MapPath(“~/Log“);
                    if (!Directory.Exists(folder))
                        Directory.CreateDirectory(folder);
                    fs = new FileStream(folder + “/“ + filename System.IO.FileMode.Append System.IO.FileAccess.Write);
                    sw = new StreamWriter(fs Encoding.UTF8);
                    sw.WriteLine(DateTime.Now.ToString() + “     “ + debugstr + “\r\n“);
                }
                finally
                {
                    if (sw != null)
                    {
                        sw.Flush();
                        sw.Dispose();
                        sw = null;
                    }
                    if (fs != null)
                    {
                        //     fs.Flush();
                        fs.Dispose();
                        fs = null;
                    }
                }
            }
        }
    }
}

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

     文件      85849  2018-01-05 10:46  WeiXin\.vs\config\applicationhost.config

    ..A..H.     56320  2018-01-05 11:42  WeiXin\.vs\WeiXin\v14\.suo

     文件     145532  2018-01-05 10:47  WeiXin\packages\Antlr.3.4.1.9004\Antlr.3.4.1.9004.nupkg

     文件     102912  2013-02-22 08:43  WeiXin\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll

     文件     431616  2013-02-22 08:43  WeiXin\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.pdb

     文件     121137  2018-01-05 10:46  WeiXin\packages\bootstrap.3.0.0\bootstrap.3.0.0.nupkg

     文件     120502  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\Content\bootstrap.css

     文件      97949  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\Content\bootstrap.min.css

     文件      14079  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.eot

     文件      63157  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.svg

     文件      29512  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.ttf

     文件      16448  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\fonts\glyphicons-halflings-regular.woff

     文件      59250  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\scripts\bootstrap.js

     文件      28518  2013-09-13 16:05  WeiXin\packages\bootstrap.3.0.0\content\scripts\bootstrap.min.js

     文件        209  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\content\App.config.transform

     文件        209  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\content\Web.config.transform

     文件    4255648  2018-01-05 10:47  WeiXin\packages\Entityframework.6.1.3\Entityframework.6.1.3.nupkg

     文件    4976848  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\Entityframework.dll

     文件     601808  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\Entityframework.SqlServer.dll

     文件     145441  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\Entityframework.SqlServer.xml

     文件    3229543  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\Entityframework.xml

     文件     326352  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\zh-Hans\Entityframework.resources.dll

     文件      19664  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\zh-Hans\Entityframework.SqlServer.resources.dll

     文件     172253  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\zh-Hans\Entityframework.SqlServer.xml

     文件    2576741  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net40\zh-Hans\Entityframework.xml

     文件    5196496  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net45\Entityframework.dll

     文件     621264  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net45\Entityframework.SqlServer.dll

     文件     154866  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net45\Entityframework.SqlServer.xml

     文件    3652961  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net45\Entityframework.xml

     文件     326352  2015-03-02 09:32  WeiXin\packages\Entityframework.6.1.3\lib\net45\zh-Hans\Entityframework.resources.dll

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

评论

共有 条评论

相关资源