123
This commit is contained in:
parent
07af8a3aa6
commit
0d3fe3b1e2
@ -678,6 +678,8 @@ namespace GZ_KD_Parino.Common
|
|||||||
Convert.ToString(data[0]["单据编号"]), DateTime.Now.ToString("yyyyMMddHHmmssfff"), ctx.DataCenterName, FType), result);
|
Convert.ToString(data[0]["单据编号"]), DateTime.Now.ToString("yyyyMMddHHmmssfff"), ctx.DataCenterName, FType), result);
|
||||||
JObject jo = (JObject)JsonConvert.DeserializeObject(result);//获取binding
|
JObject jo = (JObject)JsonConvert.DeserializeObject(result);//获取binding
|
||||||
userBinding = jo["binding"] == null ? "" : jo["binding"].ToString();
|
userBinding = jo["binding"] == null ? "" : jo["binding"].ToString();
|
||||||
|
//增加验证token的逻辑
|
||||||
|
|
||||||
|
|
||||||
//修改日志为成功
|
//修改日志为成功
|
||||||
SQL.SqlManage.UpdateDockingPLMLog(ctx, idkey, "100", "", result, getUserBinding_url, "PMS登录", "接口日志");
|
SQL.SqlManage.UpdateDockingPLMLog(ctx, idkey, "100", "", result, getUserBinding_url, "PMS登录", "接口日志");
|
||||||
|
|||||||
@ -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)
|
public static bool UpdateDockingPLMLog(Context ctx, Guid newid,string FuncStatus,string ExceptionInfo, string Result,string RequestParamInfo,string Method,string FuncMethod)
|
||||||
{
|
{
|
||||||
bool a = true;
|
bool a = true;
|
||||||
if (!Result.Contains("\"result\":true,") && !Method.Contains("项目盒子"))
|
if (!Result.Contains("\"result\":true,") && !Method.Contains("项目盒子")&& Result!="")
|
||||||
{
|
{
|
||||||
FuncStatus = "4";
|
FuncStatus = "4";
|
||||||
a = false;
|
a = false;
|
||||||
|
|||||||
@ -53,6 +53,11 @@ namespace GZ_KD_Parino.Sal_Order
|
|||||||
* jieduan= '5-商机赢单' ,
|
* jieduan= '5-商机赢单' ,
|
||||||
* jdnew='5-商机赢单'
|
* jdnew='5-商机赢单'
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (data[0]["F_CRMID"].ToString() == "")
|
||||||
|
{
|
||||||
|
throw new Exception("没有ID的商机,不需要对接");
|
||||||
|
}
|
||||||
var json = new
|
var json = new
|
||||||
{
|
{
|
||||||
id = data[0]["F_CRMID"],//销售订单上,商机名称的CRMID字段
|
id = data[0]["F_CRMID"],//销售订单上,商机名称的CRMID字段
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user