Skip to content

Commit ebc907d

Browse files
author
D857794690
committed
修改Post为get,并解决comment的BUG.
1 parent 53432fb commit ebc907d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

WebApplication1/Controllers/CommentController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public HttpResponseMessage GetComment(long id,string type)
2424
else if (id == null) { returndata.Message = "ID Empty"; }
2525
else
2626
{
27+
returndata.Message = "success";
2728
var results =
2829
from Comment in db.Comment
2930
where Comment.TypeID == id && Comment.Type == type

WebApplication1/Controllers/ResourceController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public HttpResponseMessage RequestPatent(long id)
248248
/// </summary>
249249
/// <param name="id"></param>
250250
/// <returns></returns>
251-
[HttpPost]
251+
[HttpGet]
252252
[Route("resource/getexpertlinegraph")]
253253
public HttpResponseMessage GetExpertYears(long id)
254254
{

0 commit comments

Comments
 (0)