mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
feat: 增加URL表单
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using OpenAuth.Repository;
|
||||
using OpenAuth.Repository.Domain;
|
||||
using OpenAuth.Repository.Interface;
|
||||
using Infrastructure;
|
||||
|
||||
namespace OpenAuth.App
|
||||
{
|
||||
@@ -9,14 +10,14 @@ namespace OpenAuth.App
|
||||
{
|
||||
public static IForm CreateForm(Form form, IUnitWork<OpenAuthDBContext> unitWork)
|
||||
{
|
||||
if (form.FrmType == 0)
|
||||
if (form.FrmType == Define.FORM_TYPE_DYNAMIC)
|
||||
{
|
||||
return new LeipiForm(unitWork);
|
||||
}else if (form.FrmType == 1)
|
||||
}else if (form.FrmType == Define.FORM_TYPE_DEVELOP)
|
||||
{
|
||||
throw new Exception("自定义表单不需要创建数据库表");
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
return new DragForm(unitWork);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Infrastructure;
|
||||
namespace OpenAuth.App.Response
|
||||
{
|
||||
/// <summary>
|
||||
@@ -83,7 +83,7 @@ namespace OpenAuth.App.Response
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.FrmType != 0) //只有开原版动态表单才需要转换
|
||||
if (this.FrmType != Define.FORM_TYPE_DYNAMIC) //只有开原版动态表单才需要转换
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user