推送数据
This commit is contained in:
@@ -117,19 +117,19 @@ namespace WebAPI.Controllers
|
||||
public Model.ResponeData SaveTestPlan([FromBody] Model.TestPlanItem testPlan)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
//try
|
||||
//{
|
||||
responeData.message = APITestPlanService.SaveTestPlan(testPlan);
|
||||
if (!string.IsNullOrEmpty(responeData.message))
|
||||
{
|
||||
responeData.code = 2;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = ex.Message;
|
||||
}
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// responeData.code = 0;
|
||||
// responeData.message = ex.Message;
|
||||
//}
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user