![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MVC
zxphello
性格外向,开朗.为人诚恳.
展开
-
MVC继承Controller类并重写OnException方法实现全局错误日志
记录错误日志是一个项目的重要部分,所以直接写一个BaseController来继承Controller就可以记录所有异常。 一、创建类BaseController.cs ,继承Controller类并重写OnException方法,代码如下 public class BaseController : Controller { //记录异常 protect原创 2018-01-06 11:40:25 · 2390 阅读 · 1 评论 -
C#微信发送模板消息功能
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Text;using System.IO;using System.Threading.Tasks;using Newtonsoft.Json;namespace Common{ public class ...原创 2018-06-27 16:13:30 · 5487 阅读 · 2 评论