This commit is contained in:
余宇波 2025-10-14 17:22:32 +08:00
parent 07af8a3aa6
commit 0d3fe3b1e2
3 changed files with 8 additions and 1 deletions

View File

@ -678,6 +678,8 @@ namespace GZ_KD_Parino.Common
Convert.ToString(data[0]["单据编号"]), DateTime.Now.ToString("yyyyMMddHHmmssfff"), ctx.DataCenterName, FType), result);
JObject jo = (JObject)JsonConvert.DeserializeObject(result);//获取binding
userBinding = jo["binding"] == null ? "" : jo["binding"].ToString();
//增加验证token的逻辑
//修改日志为成功
SQL.SqlManage.UpdateDockingPLMLog(ctx, idkey, "100", "", result, getUserBinding_url, "PMS登录", "接口日志");

View File

@ -520,7 +520,7 @@ namespace GZ_KD_Parino.SQL
public static bool UpdateDockingPLMLog(Context ctx, Guid newid,string FuncStatus,string ExceptionInfo, string Result,string RequestParamInfo,string Method,string FuncMethod)
{
bool a = true;
if (!Result.Contains("\"result\":true,") && !Method.Contains("项目盒子"))
if (!Result.Contains("\"result\":true,") && !Method.Contains("项目盒子")&& Result!="")
{
FuncStatus = "4";
a = false;

View File

@ -53,6 +53,11 @@ namespace GZ_KD_Parino.Sal_Order
* jieduan= '5-' ,
* jdnew='5-'
*/
if (data[0]["F_CRMID"].ToString() == "")
{
throw new Exception("没有ID的商机不需要对接");
}
var json = new
{
id = data[0]["F_CRMID"],//销售订单上商机名称的CRMID字段