From 16973dc53e37127ef2726533f20bb251714b1e3f Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期二, 19 一月 2021 15:10:32 +0800
Subject: [PATCH] nothing
---
WebAPI/Controllers/NewApiController.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/WebAPI/Controllers/NewApiController.cs b/WebAPI/Controllers/NewApiController.cs
index 504fce4..cc1d5c5 100644
--- a/WebAPI/Controllers/NewApiController.cs
+++ b/WebAPI/Controllers/NewApiController.cs
@@ -98,6 +98,7 @@
/// <returns></returns>
[Route("api/newBill/setStationInBill")]
[HttpPost]
+ [HttpGet]
public ApiResult SetStationInBill()
{
HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"];//鑾峰彇浼犵粺context
@@ -161,7 +162,7 @@
{
oMain.HICMOBillNo = request.Form["HICMOBillNo"].ToString();
}
- if (request.Form["HMaterID"] != null)
+ if (!string.IsNullOrEmpty( request.Form["HMaterID"]))
{
oMain.HMaterID =long.Parse(request.Form["HMaterID"].ToString());
}
--
Gitblit v1.9.1