public IActionResult TestRedis(XXXRequest gg) { var dd = _redisManager.GetOrCreate <string>("1", func: () => { return("1"); }); _logger.Information("这是系统日志"); //return ToFailResult("", 500); var result = _xXXService.GetList(); //var ss= _userApi.GetGoodsList(1,"66").GetAwaiter().GetResult(); //测试设置数据库 //测试自动生成代理请求 //var resu = _userApi.GetGoodsList(1, "hhhh").GetAwaiter().GetResult(); //Serilog.Log.Error("这是错误"); return(ToSuccessResult(result)); }