use Mojolicious::Lite; use JSON qw/encode_json decode_json/; # /foo?user=sri get '/api' => sub { my $c = shift; my $env = $c->param('env'); if ($env){ use DBI; my $dbName = 'oadb'; my $dbUser = 'query'; my $dbUserPass = 'xxxxxx'; my @arr2="&quo
[Route("api/Message/MessageList/")] [HttpGet] public HttpResponseMessage MessageList() { ResponseResult obj = new ResponseResult(); ]); List<JObject> list = new List<JObject>(); foreach (var item in pageData) { list.Add(JObject.FromO
需要命名空间 using System.Net; using System.Net.Security using System.Security.Cryptography.X509Certificates; using System.Web.Script.Serialization; using Newtonsoft.Json; //来对远程X.509证书的验证进行处理防止出现未能为SSL/TLS 安全通道建立信任关系错误 public static class Util { public st