You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
976 B
C#

using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Ys.Core.Common;
using djy.Paas.IService;
namespace djyweb_djyPaasApi.Controllers
{
/// <summary>
///外部结合跳转控制
/// </summary>
public class GetwayController : ApiBase
{
IMenuListService _server = IOC.AddServer<IMenuListService>();
/// <summary>
/// 根据webid获取页面
/// </summary>
/// <returns></returns>
[HttpGet("geturl/{webid}")]
public object Geturl(string webid) {
var rs = new ReturnResult<string>();
try {
var get = _server.GetKey(webid);
if (get.Status)
{
rs.Data = get.Data.Url;
rs.OK();
}
}
catch {
}
return rs;
}
}
}