乐于分享
好东西不私藏

PC与PLC重连机制详细说明

PC与PLC重连机制详细说明

目录

1. [重连机制概述](#重连机制概述)
2. [PLC通信架构](#plc通信架构)
3. [连接状态机](#连接状态机)
4. [重连策略设计](#重连策略设计)
5. [基于HslCommunication的完整实现](#基于hslcommunication的完整实现)
6. [三菱PLC重连实现](#三菱plc重连实现)
7. [欧姆龙PLC重连实现](#欧姆龙plc重连实现)
8. [西门子PLC重连实现](#西门子plc重连实现)
9. [监控与诊断](#监控与诊断)
10. [常见问题与解决方案](#常见问题与解决方案)
11. [最佳实践](#最佳实践)
---

## 重连机制概述

### 为什么需要PLC需要重连机制?

在工业自动化场景中,PC与PLC之间的通信面临以下挑战:
| 问题 | 说明 |
|------|------|
| **网络抖动** | 工业环境中电磁干扰导致短暂网络中断 |
| **设备重启** | PLC维护、升级或故障恢复 |
| **线缆故障** | 物理连接松动或损坏 |
| **PLC断电** | 电源波动或计划性停机 |
| **IP变更** | 网络配置调整 |
| **服务端过载** | PLC处理能力不足导致超时 |

### 重连机制的核心目标

1. **自动恢复** - 无需人工干预,自动重建连接
2. **状态保持** - 准确记录连接状态变化
3. **数据缓存** - 断线期间的数据保护
4. **平滑过渡** - 重连后无缝恢复业务
5. **故障诊断** - 提供断线原因分析
---

## PLC通信架构

### 典型的PC-PLC通信层次结构

```
┌─────────────────────────────────────────────────────────┐
│                    WPF应用程序层                        │
│  ┌───────────────────────────────────────────────────┐ │
│  │              业务逻辑层                          │ │
│  │  (数据采集、设备控制、报警处理)                │ │
│  └─────────────────────┬─────────────────────────────┘ │
│                    │                                │
│  ┌─────────────────▼─────────────────────────────┐ │
│  │          PLC连接管理器层                      │ │
│  │  - 连接池管理                                │ │
│  │  - 状态监控                                  │ │
│  │  - 重连策略引擎                              │ │
│  └─────────────────────┬─────────────────────────────┘ │
│                    │                                │
│  ┌─────────────────▼─────────────────────────────┐ │
│  │          协议抽象层                            │ │
│  │  ┌──────────────┐  ┌──────────────┐  ┌─────────┐ │ │
│  │  │ 三菱     │  │  欧姆龙     │  │ 西  │ │ │
│  │  │ 协议    │  │  协议      │  │ 门  │ │ │
│  │  └──────────────┘  └──────────────┘  └─────┘ │ │
│  └─────────────────────┬─────────────────────────────┘ │
└────────────────────────┼─────────────────────────────┘
│ 以太网
┌─────────────────────────────────────────────────────────┐
│                    PLC设备层                             │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐        │
│  │ 三菱FX  │  │ 欧姆龙CJ │  │ 西门子S7 │        │
│  │ 系列    │  │  系列     │  │  系列    │        │
│  └──────────┘  └──────────┘  └──────────┘        │
└─────────────────────────────────────────────────────────┘
```

### 核心组件设计

```csharp
///
/// PLC连接接口 - 定义所有PLC设备的统一接口
///
public interface IPlcDevice : IDisposable
{
/// 设备名称
string DeviceName { get; }
/// IP地址
string IpAddress { get; }
/// 端口号
int Port { get; }
/// 当前连接状态
PlcConnectionState ConnectionState { get; }
/// 是否已连接
bool IsConnected { get; }
/// 连接状态变化事件
event EventHandler ConnectionStateChanged;
/// 连接PLC
Task ConnectAsync(CancellationToken cancellationToken = default);
/// 断开连接
Task DisconnectAsync();
/// 重新连接
Task ReconnectAsync(CancellationToken cancellationToken = default);
/// 读取数据
Task> ReadAsync(string address);
/// 写入数据
Task WriteAsync(string address, T value);
/// 心跳检测
Task HeartbeatAsync();
}
///
/// PLC连接状态
///
public enum PlcConnectionState
{
/// 未连接
Disconnected,
/// 连接中
Connecting,
/// 已连接
Connected,
/// 重连中
Reconnecting,
/// 断开中
Disconnecting,
/// 连接失败
Failed
}
///
/// PLC连接状态变更事件参数
///
public class PlcConnectionStateEventArgs : EventArgs
{
public PlcConnectionState OldState { get; set; }
public PlcConnectionState NewState { get; set; }
public DisconnectReason? Reason { get; set; }
public string Message { get; set; }
public Exception Exception { get; set; }
public DateTime Timestamp { get; set; } = DateTime.Now;
}
///
/// 断线原因
///
public enum DisconnectReason
{
Unknown,
NetworkTimeout,
ConnectionRefused,
DeviceReset,
AuthenticationFailed,
ProtocolError,
UserInitiated,
HeartbeatFailed
}
///
/// 操作结果(通用类
///
public class OperateResult
{
public bool IsSuccess { get; set; }
public string Message { get; set; }
public int ErrorCode { get; set; }
public static OperateResult CreateSuccess() => new OperateResult { IsSuccess = true };
public static OperateResult CreateFailed(string message) => new OperateResult { IsSuccess = false, Message = message };
}
public class OperateResult : OperateResult
{
public T Content { get; set; }
public static new OperateResult CreateSuccess(T content) => new OperateResult { IsSuccess = true, Content = content };
public static new OperateResult CreateFailed(string message) => new OperateResult { IsSuccess = false, Message = message };
}
```
---

## 连接状态机

### 完整的状态转换图

```
┌──────────┐
│Disconnected│
└────┬───────┘
│ 调用ConnectAsync()
┌──────────────┐
│  Connecting  │
└────┬────────┘
├─成功→ ┌──────────┐
│          │ Connected │
│          └─────┬──────┘
│                │ 心跳失败/读写失败
│                ↓
│          ┌──────────────┐
│          │  Reconnecting │
│          └─────┬────────┘
│                │
│ 失败           ├─成功→ 返回Connected
│                │
│                │ 超过最大重试次数
↓                ↓
┌──────────┐       ┌──────────┐
│Disconnecting│    │  Failed  │
└──────────┘       └──────────┘
┌──────────┐
│Disconnected│
└──────────┘
```

### 状态机实现

```csharp
///
/// PLC连接基类 - 实现状态机
///
public abstract class PlcDeviceBase : IPlcDevice
{
protected readonly object _lockObject = new object();
protected PlcConnectionState _connectionState;
protected int _reconnectCount;
protected DateTime _lastConnectedTime;
protected DateTime _lastDisconnectedTime;
protected Timer _heartbeatTimer;
protected CancellationTokenSource _reconnectCts;
protected Task _reconnectTask;
protected readonly IPlcReconnectionStrategy _reconnectionStrategy;
protected readonly ILogger _logger;
public string DeviceName { get; }
public string IpAddress { get; }
public int Port { get; }
public PlcConnectionState ConnectionState
{
get => _connectionState;
protected set
{
lock (_lockObject)
{
if (_connectionState != value)
{
var oldState = _connectionState;
_connectionState = value;
OnConnectionStateChanged(oldState, value);
}
}
}
}
public bool IsConnected => ConnectionState == PlcConnectionState.Connected;
public DateTime? LastConnectedTime => _lastConnectedTime;
public DateTime? LastDisconnectedTime => _lastDisconnectedTime;
public int ReconnectCount => _reconnectCount;
public event EventHandler ConnectionStateChanged;
protected PlcDeviceBase(
string deviceName,
string ipAddress,
int port,
IPlcReconnectionStrategy reconnectionStrategy,
ILogger logger)
{
DeviceName = deviceName ?? throw new ArgumentNullException(nameof(deviceName));
IpAddress = ipAddress ?? throw new ArgumentNullException(nameof(ipAddress));
Port = port;
_reconnectionStrategy = reconnectionStrategy ?? new ExponentialBackoffStrategy();
_logger = logger ?? NullLogger.Instance;
_connectionState = PlcConnectionState.Disconnected;
}
public async Task ConnectAsync(CancellationToken cancellationToken = default)
{
lock (_lockObject)
{
if (ConnectionState == PlcConnectionState.Connected)
{
_logger.LogInformation("[{DeviceName}] 已经处于连接状态", DeviceName);
return true;
}
if (ConnectionState == PlcConnectionState.Connecting ||
ConnectionState == PlcConnectionState.Reconnecting)
{
_logger.LogInformation("[{DeviceName}] 连接操作正在进行中", DeviceName);
return false;
}
ConnectionState = PlcConnectionState.Connecting;
}
try
{
_logger.LogInformation("[{DeviceName}] 正在连接PLC: {Ip}:{Port}", DeviceName, IpAddress, Port);
bool connected = await DoConnectAsync(cancellationToken);
if (connected)
{
lock (_lockObject)
{
ConnectionState = PlcConnectionState.Connected;
_lastConnectedTime = DateTime.Now;
_reconnectCount = 0;
_reconnectionStrategy.Reset();
StopReconnection();
StartHeartbeat();
}
_logger.LogInformation("[{DeviceName}] PLC连接成功", DeviceName);
return true;
}
else
{
lock (_lockObject)
{
ConnectionState = PlcConnectionState.Disconnected;
_lastDisconnectedTime = DateTime.Now;
}
_logger.LogWarning("[{DeviceName}] PLC连接失败", DeviceName);
return false;
}
}
catch (Exception ex)
{
lock (_lockObject)
{
ConnectionState = PlcConnectionState.Disconnected;
_lastDisconnectedTime = DateTime.Now;
}
_logger.LogError(ex, "[{DeviceName}] PLC连接异常", DeviceName);
OnConnectionStateChanged(PlcConnectionState.Connecting, PlcConnectionState.Disconnected,
DisconnectReason.NetworkTimeout, $"连接异常: {ex.Message}", ex);
return false;
}
}
public async Task DisconnectAsync()
{
lock (_lockObject)
{
if (ConnectionState == PlcConnectionState.Disconnected)
{
return;
}
ConnectionState = PlcConnectionState.Disconnecting;
StopHeartbeat();
StopReconnection();
}
try
{
_logger.LogInformation("[{DeviceName}] 正在断开PLC连接", DeviceName);
await DoDisconnectAsync();
}
finally
{
lock (_lockObject)
{
ConnectionState = PlcConnectionState.Disconnected;
_lastDisconnectedTime = DateTime.Now;
}
_logger.LogInformation("[{DeviceName}] PLC断开连接成功", DeviceName);
OnConnectionStateChanged(PlcConnectionState.Disconnecting, PlcConnectionState.Disconnected,
DisconnectReason.UserInitiated, "用户主动断开");
}
}
public async Task ReconnectAsync(CancellationToken cancellationToken = default)
{
_logger.LogInformation("[{DeviceName}] 开始重新连接...", DeviceName);
await DisconnectAsync();
await Task.Delay(500, cancellationToken);
return await ConnectAsync(cancellationToken);
}
protected void StartReconnection()
{
if (_reconnectTask != null && !_reconnectTask.IsCompleted)
{
return;
}
_reconnectCts = new CancellationTokenSource();
_reconnectTask = Task.Run(() => ReconnectionLoop(_reconnectCts.Token));
}
protected void StopReconnection()
{
if (_reconnectCts != null)
{
_reconnectCts.Cancel();
_reconnectCts.Dispose();
_reconnectCts = null;
}
}
private async Task ReconnectionLoop(CancellationToken cancellationToken)
{
int attempt = 0;
while (!cancellationToken.IsCancellationRequested)
{
try
{
attempt++;
_reconnectCount = attempt;
var interval = _reconnectionStrategy.GetNextRetryInterval(attempt);
_logger.LogInformation("[{DeviceName}] 重连尝试 {Attempt}, 等待 {Delay:F1}秒...",
DeviceName, attempt, interval.TotalSeconds);
await Task.Delay(interval, cancellationToken);
bool connected = await ConnectAsync(cancellationToken);
if (connected)
{
break;
}
if (!_reconnectionStrategy.ShouldRetry(attempt, null))
{
lock (_lockObject)
{
ConnectionState = PlcConnectionState.Failed;
}
_logger.LogError("[{DeviceName}] 重连失败,已达到最大重试次数 {Attempt}", DeviceName, attempt);
break;
}
}
catch (OperationCanceledException)
{
break;
}
catch (Exception ex)
{
_logger.LogError(ex, "[{DeviceName}] 重连异常", DeviceName);
}
}
}
protected void StartHeartbeat()
{
StopHeartbeat();
_heartbeatTimer = new Timer(
HeartbeatCallback,
null,
TimeSpan.FromSeconds(5),
TimeSpan.FromSeconds(5));
}
protected void StopHeartbeat()
{
_heartbeatTimer?.Dispose();
_heartbeatTimer = null;
}
private async void HeartbeatCallback(object state)
{
if (!IsConnected)
{
return;
}
try
{
bool alive = await HeartbeatAsync();
if (!alive)
{
_logger.LogWarning("[{DeviceName}] 心跳检测失败", DeviceName);
await HandleConnectionErrorAsync(DisconnectReason.HeartbeatFailed, "心跳检测失败");
}
}
catch (Exception ex)
{
_logger.LogError(ex, "[{DeviceName}] 心跳检测异常", DeviceName);
await HandleConnectionErrorAsync(DisconnectReason.HeartbeatFailed, $"心跳异常: {ex.Message}");
}
}
protected async Task HandleConnectionErrorAsync(DisconnectReason reason, string message)
{
lock (_lockObject)
{
if (ConnectionState == PlcConnectionState.Disconnected)
{
return;
}
ConnectionState = PlcConnectionState.Disconnected;
_lastDisconnectedTime = DateTime.Now;
}
OnConnectionStateChanged(PlcConnectionState.Connected, PlcConnectionState.Disconnected, reason, message);
StartReconnection();
}
protected virtual void OnConnectionStateChanged(
PlcConnectionState oldState,
PlcConnectionState newState,
DisconnectReason? reason = null,
string message = null,
Exception exception = null)
{
ConnectionStateChanged?.Invoke(this, new PlcConnectionStateEventArgs
{
OldState = oldState,
NewState = newState,
Reason = reason,
Message = message,
Exception = exception
});
}
protected abstract Task DoConnectAsync(CancellationToken cancellationToken);
protected abstract Task DoDisconnectAsync();
public abstract Task> ReadAsync(string address);
public abstract Task WriteAsync(string address, T value);
public abstract Task HeartbeatAsync();
public virtual void Dispose()
{
StopHeartbeat();
StopReconnection();
DisconnectAsync().Wait(TimeSpan.FromSeconds(5));
}
}
```
---

## 重连策略设计

### 1. 指数退避策略(推荐)

```csharp
///
/// 重连策略接口
///
public interface IPlcReconnectionStrategy
{
TimeSpan GetNextRetryInterval(int attemptCount);
bool ShouldRetry(int attemptCount, Exception lastException);
void Reset();
}
///
/// 指数退避重连策略配置
///
public class ExponentialBackoffConfig
{
public int BaseRetryIntervalMs { get; set; } = 2000;
public int MaxRetryIntervalMs { get; set; } = 60000;
public double RetryMultiplier { get; set; } = 2.0;
public int MaxRetryCount { get; set; } = int.MaxValue;
public bool EnableJitter { get; set; } = true;
}
///
/// 指数退避重连策略
///
public class ExponentialBackoffStrategy : IPlcReconnectionStrategy
{
private readonly ExponentialBackoffConfig _config;
private readonly Random _random;
public ExponentialBackoffStrategy(ExponentialBackoffConfig config = null)
{
_config = config ?? new ExponentialBackoffConfig();
_random = new Random();
}
public TimeSpan GetNextRetryInterval(int attemptCount)
{
double interval = _config.BaseRetryIntervalMs * Math.Pow(_config.RetryMultiplier, attemptCount - 1);
interval = Math.Min(interval, _config.MaxRetryIntervalMs);
if (_config.EnableJitter)
{
double jitter = interval * 0.1 * (_random.NextDouble() * 2 - 1);
interval += jitter;
}
return TimeSpan.FromMilliseconds(Math.Max(1000, interval));
}
public bool ShouldRetry(int attemptCount, Exception lastException)
{
if (attemptCount >= _config.MaxRetryCount)
{
return false;
}
if (lastException != null)
{
if (IsNonRetryableException(lastException))
{
return false;
}
}
return true;
}
public void Reset()
{
}
private bool IsNonRetryableException(Exception ex)
{
if (ex.Message.Contains("认证失败") || ex.Message.Contains("Authentication failed"))
return true;
if (ex.Message.Contains("设备已停用") || ex.Message.Contains("Device disabled"))
return true;
return false;
}
}
///
/// 固定间隔重连策略
///
public class FixedIntervalStrategy : IPlcReconnectionStrategy
{
private readonly int _intervalMs;
private readonly int _maxRetryCount;
public FixedIntervalStrategy(int intervalMs = 5000, int maxRetryCount = int.MaxValue)
{
_intervalMs = intervalMs;
_maxRetryCount = maxRetryCount;
}
public TimeSpan GetNextRetryInterval(int attemptCount)
{
return TimeSpan.FromMilliseconds(_intervalMs);
}
public bool ShouldRetry(int attemptCount, Exception lastException)
{
return attemptCount < _maxRetryCount;
}
public void Reset()
{
}
}
///
/// 线性退避重连策略
///
public class LinearBackoffStrategy : IPlcReconnectionStrategy
{
private readonly int _baseIntervalMs;
private readonly int _incrementMs;
private readonly int _maxIntervalMs;
private readonly int _maxRetryCount;
public LinearBackoffStrategy(int baseIntervalMs = 2000, int incrementMs = 2000, int maxIntervalMs = 30000, int maxRetryCount = int.MaxValue)
{
_baseIntervalMs = baseIntervalMs;
_incrementMs = incrementMs;
_maxIntervalMs = maxIntervalMs;
_maxRetryCount = maxRetryCount;
}
public TimeSpan GetNextRetryInterval(int attemptCount)
{
int interval = _baseIntervalMs + (attemptCount - 1) * _incrementMs;
interval = Math.Min(interval, _maxIntervalMs);
return TimeSpan.FromMilliseconds(interval));
}
public bool ShouldRetry(int attemptCount, Exception lastException)
{
return attemptCount < _maxRetryCount;
}
public void Reset()
{
}
}
```

### 重连策略对比

| 策略类型 | 优点 | 缺点 | 适用场景 |
|---------|------|------|---------|
| 固定间隔 | 简单易实现 | 可能造成网络风暴 | 网络稳定,设备少 |
| 指数退避 | 避免网络风暴,智能调整 | 长时间断线后恢复慢 | 大多数工业场景,推荐使用 |
| 线性退避 | 平衡简单和智能 | 间隔增长均匀 | 中等网络环境 |
---

## 基于HslCommunication的完整实现

### 三菱PLC重连实现

```csharp
using HslCommunication;
using HslCommunication.Profinet.Melsec;
using Microsoft.Extensions.Logging;
namespace IndustrialPlc.PlcDevices
{
///
/// 三菱PLC设备
///
public class MelsecPlcDevice : PlcDeviceBase
{
private MelsecMcNet _plc;
private readonly string _plcType;
public MelsecPlcDevice(
string deviceName,
string ipAddress,
int port = 6000,
string plcType = "Q",
IPlcReconnectionStrategy reconnectionStrategy = null,
ILogger logger = null)
: base(deviceName, ipAddress, port, reconnectionStrategy, logger)
{
_plcType = plcType;
}
protected override Task DoConnectAsync(CancellationToken cancellationToken)
{
return Task.Run(() =>
{
try
{
_plc = new MelsecMcNet(IpAddress, Port)
{
ConnectTimeOut = 5000,
ReceiveTimeOut = 5000
};
if (_plcType == "FX")
{
_plc.Series = MelsecSeries.FX5U;
}
else if (_plcType == "Q")
{
_plc.Series = MelsecSeries.Q;
}
OperateResult connectResult = _plc.ConnectServer();
if (connectResult.IsSuccess)
{
_logger.LogInformation("[{DeviceName}] 三菱PLC连接成功", DeviceName);
return true;
}
else
{
_logger.LogWarning("[{DeviceName}] 三菱PLC连接失败: {Message}", DeviceName, connectResult.Message);
return false;
}
}
catch (Exception ex)
{
_logger.LogError(ex, "[{DeviceName}] 三菱PLC连接异常", DeviceName);
return false;
}
}, cancellationToken);
}
protected override Task DoDisconnectAsync()
{
try
{
_plc?.ConnectClose();
_plc?.Dispose();
_plc = null;
}
catch (Exception ex)
{
_logger.LogError(ex, "[{DeviceName}] 断开三菱PLC连接异常", DeviceName);
}
return Task.CompletedTask;
}
public override Task> ReadAsync(string address)
{
return Task.Run(() =>
{
if (!IsConnected || _plc == null)
{
return OperateResult.CreateFailed("PLC未连接");
}
try
{
Type type = typeof(T);
OperateResult result;
if (type == typeof(short))
{
result = _plc.ReadInt16(address);
}
else if (type == typeof(ushort))
{
result = _plc.ReadUInt16(address);
}
else if (type == typeof(int))
{
result = _plc.ReadInt32(address);
}
else if (type == typeof(uint))
{
result = _plc.ReadUInt32(address);
}
else if (type == typeof(float))
{
result = _plc.ReadFloat(address);
}
else if (type == typeof(bool))
{
result = _plc.ReadBool(address);
}
else
{
return OperateResult.CreateFailed($"不支持的数据类型: {type.Name}");
}
if (result.IsSuccess)
{
return OperateResult.CreateSuccess((T)result.Content);
}
else
{
_ = HandleConnectionErrorAsync(DisconnectReason.ProtocolError, $"读取失败: {result.Message}");
return OperateResult.CreateFailed(result.Message);
}
}
catch (Exception ex)
{
_logger.LogError(ex, "[{DeviceName}] 读取数据异常", DeviceName);
_ = HandleConnectionErrorAsync(DisconnectReason.ProtocolError, $"读取异常: {ex.Message}");
return OperateResult.CreateFailed(ex.Message);
}
});
}
public override Task WriteAsync(string address, T value)
{
return Task.Run(() =>
{
if (!IsConnected || _plc == null)
{
return OperateResult.CreateFailed("PLC未连接");
}
try
{
OperateResult result;
Type type = typeof(T);
if (type == typeof(short))
{
result = _plc.Write(address, (short)(object)value);
}
else if (type == typeof(ushort))
{
result = _plc.Write(address, (ushort)(object)value);
}
else if (type == typeof(int))
{
result = _plc.Write(address, (int)(object)value);
}
else if (type == typeof(uint))
{
result = _plc.Write(address, (uint)(object)value);
}
else if (type == typeof(float))
{
result = _plc.Write(address, (float)(object)value);
}
else if (type == typeof(bool))
{
result = _plc.Write(address, (bool)(object)value);
}
else
{
return OperateResult.CreateFailed($"不支持的数据类型: {type.Name}");
}
if (result.IsSuccess)
{
return OperateResult.CreateSuccess();
}
else
{
_ = HandleConnectionErrorAsync(DisconnectReason.ProtocolError, $"写入失败: {result.Message}");
return OperateResult.CreateFailed(result.Message);
}
}
catch (Exception ex)
{
_logger.LogError(ex, "[{DeviceName}] 写入数据异常", DeviceName);
_ = HandleConnectionErrorAsync(DisconnectReason.ProtocolError, $"写入异常: {ex.Message}");
return OperateResult.CreateFailed(ex.Message);
}
});
}
public override Task HeartbeatAsync()
{
return Task.Run(() =>
{
if (_plc == null)
{
return false;
}
try
{
var result = _plc.ReadInt16("D0");
return result.IsSuccess;
}
catch
{
return false;
}
});
}
}
}
```

### 欧姆龙PLC重连实现

```csharp
using HslCommunication;
using HslCommunication.Profinet.Omron;
using Microsoft.Extensions.Logging;
namespace IndustrialPlc.PlcDevices
{
///
/// 欧姆龙PLC设备
///
public class OmronPlcDevice : PlcDeviceBase
{
private OmronFinsNet _plc;
private readonly byte _localNode;
private readonly byte _plcNode;
public OmronPlcDevice(
string deviceName,
string ipAddress,
int port = 9600,
byte localNode = 0,
byte plcNode = 0,
IPlcReconnectionStrategy reconnectionStrategy = null,
ILogger logger = null)
: base(deviceName, ipAddress, port, reconnectionStrategy, logger)
{
_localNode = localNode;
_plcNode = plcNode;
}
protected override Task DoConnectAsync(CancellationToken cancellationToken)
{
return Task.Run(() =>
{
try
{
_plc = new OmronFinsNet(IpAddress, Port)
{
ConnectTimeOut = 5000,
ReceiveTimeOut = 5000,
LocalNode = _localNode,
DestNode = _plcNode
};
OperateResult connectResult = _plc.ConnectServer();
if (connectResult.IsSuccess)
{
基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-05-22 14:25:38 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/652252.html
  2. 运行时间 : 0.191185s [ 吞吐率:5.23req/s ] 内存消耗:4,748.40kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=33590e043a4801cdd17f5e963fd330b2
  1. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/composer/autoload_static.php ( 6.05 KB )
  7. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/ralouphie/getallheaders/src/getallheaders.php ( 1.60 KB )
  10. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  11. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  12. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  13. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  14. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  15. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  16. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  17. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  18. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  19. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions_include.php ( 0.16 KB )
  21. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/guzzlehttp/guzzle/src/functions.php ( 5.54 KB )
  22. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  23. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  24. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  25. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/provider.php ( 0.19 KB )
  26. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  27. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  28. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  29. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/common.php ( 0.03 KB )
  30. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  32. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/alipay.php ( 3.59 KB )
  33. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  34. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/app.php ( 0.95 KB )
  35. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cache.php ( 0.78 KB )
  36. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/console.php ( 0.23 KB )
  37. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/cookie.php ( 0.56 KB )
  38. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/database.php ( 2.48 KB )
  39. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/filesystem.php ( 0.61 KB )
  40. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/lang.php ( 0.91 KB )
  41. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/log.php ( 1.35 KB )
  42. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/middleware.php ( 0.19 KB )
  43. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/route.php ( 1.89 KB )
  44. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/session.php ( 0.57 KB )
  45. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/trace.php ( 0.34 KB )
  46. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/config/view.php ( 0.82 KB )
  47. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/event.php ( 0.25 KB )
  48. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  49. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/service.php ( 0.13 KB )
  50. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/AppService.php ( 0.26 KB )
  51. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  52. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  53. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  54. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  55. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  56. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/services.php ( 0.14 KB )
  57. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  58. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  59. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  60. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  61. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  62. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  63. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  64. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  65. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  66. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  67. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  68. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  69. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  70. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  71. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  72. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  73. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  74. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  75. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  76. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  77. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  78. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  79. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  80. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  81. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  82. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  83. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  84. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  85. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  86. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  87. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/Request.php ( 0.09 KB )
  88. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  89. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/middleware.php ( 0.25 KB )
  90. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  91. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  92. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  93. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  94. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  95. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  96. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  97. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  98. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  99. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  100. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  101. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  102. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  103. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/route/app.php ( 3.94 KB )
  104. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  105. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  106. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Index.php ( 9.87 KB )
  108. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/BaseController.php ( 2.05 KB )
  109. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  110. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  111. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  112. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  113. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  114. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  115. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  116. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  117. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  118. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  119. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  120. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  121. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  122. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  123. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  124. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  125. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  126. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  127. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  128. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  129. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  130. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  131. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  132. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  133. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  134. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  135. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/app/controller/Es.php ( 3.30 KB )
  136. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  137. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  138. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  139. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  140. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  141. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  142. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  143. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  144. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/runtime/temp/c935550e3e8a3a4c27dd94e439343fdf.php ( 31.50 KB )
  145. /yingpanguazai/ssd/ssd1/www/wwww.yeyulingfeng.com/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000917s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001381s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.001141s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000677s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001299s ]
  6. SELECT * FROM `set` [ RunTime:0.000590s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001428s ]
  8. SELECT * FROM `article` WHERE `id` = 652252 LIMIT 1 [ RunTime:0.001361s ]
  9. UPDATE `article` SET `lasttime` = 1779431138 WHERE `id` = 652252 [ RunTime:0.002570s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000572s ]
  11. SELECT * FROM `article` WHERE `id` < 652252 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001096s ]
  12. SELECT * FROM `article` WHERE `id` > 652252 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001248s ]
  13. SELECT * FROM `article` WHERE `id` < 652252 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001782s ]
  14. SELECT * FROM `article` WHERE `id` < 652252 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001870s ]
  15. SELECT * FROM `article` WHERE `id` < 652252 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002481s ]
0.195104s