|
@@ -54,7 +54,7 @@ namespace MySystem
|
|
|
Dictionary<string, object> dataContent = new Dictionary<string, object>();
|
|
|
dataContent.Add("pos_sn", act.SnNo); //机具sn
|
|
|
dataContent.Add("mer_no", act.MerNo); //商户号
|
|
|
- dataContent.Add("request_id", getRequestId(act.Id, "deposit")); //流水号
|
|
|
+ dataContent.Add("request_id", getRequestId(act.SnNo + act.MerNo, "deposit")); //流水号
|
|
|
dataContent.Add("deposit_amount", TradeAmount); //押金金额
|
|
|
dataContent.Add("trade_time", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); //交易时间
|
|
|
dataContent.Add("card_type", 1); //卡类型
|
|
@@ -150,5 +150,13 @@ namespace MySystem
|
|
|
}
|
|
|
return DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
|
|
|
}
|
|
|
+ public static string getRequestId(string str, string type)
|
|
|
+ {
|
|
|
+ if(!string.IsNullOrEmpty(str))
|
|
|
+ {
|
|
|
+ return function.MD5_32(str + type);
|
|
|
+ }
|
|
|
+ return DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
|
|
|
+ }
|
|
|
}
|
|
|
}
|