Browse Source

问卷调查手机端提交数据get改post

master
liangkun 3 years ago
parent
commit
55534e1d19
3 changed files with 4 additions and 3 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/AskPaper/AskPaper.js
  2. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/AskApi.cs
  3. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Web.config

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Mobile/www/pages/Ask/AskPaper/AskPaper.js View File

@@ -92,7 +92,7 @@
return return
} }
// return // return
learun.httpget(path + "/learun/ask/savepaper",
learun.httppost(path + "/learun/ask/savepaper",
{ {
VID: param.VID, VID: param.VID,
LessonNo: param.LessonNo, LessonNo: param.LessonNo,


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/AskApi.cs View File

@@ -22,7 +22,7 @@ namespace Learun.Application.WebApi.Modules
{ {
Get["/paper"] = GetPaper;// 获取组织机构数据映射表 Get["/paper"] = GetPaper;// 获取组织机构数据映射表
Get["/studentlist"] = GetStudentList; Get["/studentlist"] = GetStudentList;
Get["/savepaper"] = SavePaper;
Post["/savepaper"] = SavePaper;
} }


private Ask_MainIBLL ask_MainIBLL = new Ask_MainBLL(); private Ask_MainIBLL ask_MainIBLL = new Ask_MainBLL();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Web.config View File

@@ -26,7 +26,8 @@
--> -->
<system.web> <system.web>
<compilation debug="true" targetFramework="4.6.1" /> <compilation debug="true" targetFramework="4.6.1" />
<httpRuntime />
<!--最大请求长度,单位为KB(千字节),默认为4M,设置为1G,上限为2G -->
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
<pages controlRenderingCompatibilityVersion="4.0" /> <pages controlRenderingCompatibilityVersion="4.0" />
<httpHandlers> <httpHandlers>
<add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" /> <add verb="*" type="Nancy.Hosting.Aspnet.NancyHttpRequestHandler" path="*" />


Loading…
Cancel
Save