public WeiXinResponseVM GETWeiXinInterface([FromUri] RequestWeiXinVM vm) { var result = new WeiXinResponseVM() { ResultCode = "99", ResultMessage = "未知错误!", ResultContent = "", }; try { result.ResultContent = "success"; } catch (Exception ex) { Log.Error("系统错误!", ex.ToString()); } return(result); }
public WeiXinResponseVM POSTWeiXinInterface([FromBody] RequestWeiXinVM vm) { var result = new WeiXinResponseVM() { ResultCode = "99", ResultMessage = "未知错误!", ResultContent = "", }; try { //string appid = "appid"; //string secret = "appsecret"; //string strUrl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" + appid + "&secret=" + secret; result.ResultContent = "success"; } catch (Exception ex) { Log.Error("系统错误!", ex.ToString()); } return(result); }