|
@@ -711,8 +711,19 @@ public partial class ProfileHandler
|
|
|
receipt: string.Empty,
|
|
|
cost: session.IsBilling ? -1 : 0);
|
|
|
|
|
|
+ if (_request.transactionData == null || _request.transactionData.Count == 0)
|
|
|
+ {
|
|
|
+ _request.transactionData = new List<MeterValue>()
|
|
|
+ {
|
|
|
+ new MeterValue() { timestamp= _request.timestamp, sampledValue=new List<SampledValue>()}
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
if (_request.transactionData != null && _request.transactionData.Count > 0)
|
|
|
{
|
|
|
+ //清除 StopTransaction TransactionData
|
|
|
+ _request.transactionData[0].sampledValue.Clear();
|
|
|
+
|
|
|
_request.transactionData[0].sampledValue.Add(new SampledValue()
|
|
|
{
|
|
|
context = ReadingContext.Transaction_End,
|