当前位置:首页>python>用 Python + TLE 数据,打造交互式卫星轨迹可视化

用 Python + TLE 数据,打造交互式卫星轨迹可视化

  • 2026-06-28 04:39:47
用 Python + TLE 数据,打造交互式卫星轨迹可视化

当两行轨道根数(TLE)遇见 Plotly,我们就能在浏览器里"追星"——国际空间站和天和核心舱的轨道,一目了然。

背景:为什么需要可视化卫星轨迹?

卫星在头顶飞过,我们看不见它,但它确确实实在以每秒 7.8 公里的速度绕地球运转。对于地面测控站来说,知道卫星什么时候飞过头顶仰角多少,是建立通信链路的前提。

本文以Python 脚本为主导,讲述它从一份 TLE 两行根数出发,做完三件事:

  1. SGP4 轨道外推—— 计算未来 24 小时卫星在三维空间中的位置。

  2. 坐标变换与仰角计算 —— 将轨道位置映射到地面站视角,判断"看得见"还是"看不见"。

  3. 交互式双视图可视化—— 左图 3D 空间轨迹,右图 2D 星下点地图,带时间轴动画。

下图是程序运行效果:

(左:3D ECEF 空间中的卫星轨迹 + 地球半透明表面 + 星下点投影虚线。右:正交投影 2D 地图上的星下点轨迹与北京/上海/纽约三个地面站。底部有时间滑块和播放/暂停按钮。)

核心流程总览
接下来逐块拆解。
Step 1:地球定向参数——变换精度的基石
from astropy.utils import iersiers.conf.auto_download = Trueiers.conf.iers_auto_url = 'https://datacenter.iers.org/data/9/finals2000A.all'iers.conf.auto_max_age = 30

从 TEME(真赤道平春分点坐标系)到 ITRS(国际地球参考系,ECEF)的变换,需要高精度地球定向参数(极移、UT1-UTC 等)。代码配置了 astropy 自动从 IERS 下载最新的 finals2000A.all 公报,并在下载失败时优雅回退到内置的 IERS_B 低精度表格。

这是容易踩坑的一步——如果不在 astropy.coordinates 首次导入前就配好 IERS,后面所有坐标变换都会静默退化,导致数公里的位置误差

Step 2:SGP4 轨道传播——从 TLE 到三维位置
sat = Satrec.twoline2rv(line1, line2)jd, fr = jday(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second)error, pos, vel = sat.sgp4(jd, fr)

核心函数 tle_to_eci 把一条 TLE + 一个 UTC 时间,送入 SGP4 解析器,得到该时刻卫星在 TEME 坐标系下的位置(单位:km)。

SGP4 是 NORAD 发布的简化普适摄动模型,专门为 TLE 格式设计。它的精度对近地轨道卫星在几公里量级,完全满足轨迹可视化和地面站可见性预测的需求。

处理轨道外推误差也很重要:error != 0 时直接抛出异常,避免悄无声息地使用错误位置。

Step 3:坐标变换 —— TEME → ITRS (ECEF)
teme_cart = CartesianRepresentation(pos_teme * u.km)teme = TEME(teme_cart, obstime=obstime)itrs = teme.transform_to(ITRS(obstime=obstime))

借助 astropy.coordinates 的完整变换链:

  • TEME → GCRS(考虑岁差章动)

  • GCRS → ITRS(考虑地球自转、极移)

最终输出 ECEF (地心地固) 坐标,这是后续计算地面站仰角和经纬度的基础。

Step 4:仰角计算 —— 向量几何比 astropy 快百倍
def compute_elevation(r_ecef, station):    r_sta = np.array([station.x.to(u.km).value, ...])    d = r_ecef - r_sta                           # 卫星相对站的矢量    up = r_sta / np.linalg.norm(r_sta)           # 当地"上"方向    cos_zenith = np.dot(d / np.linalg.norm(d), up)    return 90.0 - np.rad2deg(np.arccos(cos_zenith))
仰角 = 90° − 天顶角。公式极简:
其中 (\vec{d}) 是卫星相对地面站的位移向量,(\vec{u}) 是地面站所在位置的径向单位向量(近似为当地"天顶"方向)。这种方法免去了 astropy 完整的 AltAz 变换链,在主循环 200 帧 × 3 站 × 2 星 = 1200 次调用中,节省了可观的时间
Step 5:Plotly 双视图交互式可视化

左图:3D 空间场景(scatter3d

元素实现
地球表面go.Surface 球面网格,Blues 配色,半透明
卫星空间轨迹线go.Scatter3d 实线
星下点投影线ECEF 坐标沿径向投影到地球表面,虚线
卫星当前位置go.Scatter3d 标记点——仰角 ≥ 5° 为 circle,否则为 x

右图:2D 地图(scattergeo

  • 使用 正交投影(orthographic),配合 geo2 键配置(注意:Plotly 多子图中第二个 geo 子图必须用 geo2 而非 geo

  • 星下点轨迹实线 + 地面站星形标记

动画帧

200 帧覆盖 24 小时,每帧更新卫星的当前位置标记。播放按钮控制动画,底部滑块可跳转到任意时刻(间隔 5 帧显示时间标签)。

关键细节traces 参数精确指定哪些 trace 需要更新,而非重绘整个图形——这大幅降低了每帧的计算开销。
Step 6:数据导出

每颗卫星独立输出一份 CSV:

内容
Time(UTC)UTC 时间戳
ECEF_X/Y/Z_kmECEF 三维坐标
Longitude/Latitude_deg经纬度
Elevation_Beijing/Shanghai/NewYork_deg各站仰角
可以直接用 Excel 或 Python 做进一步分析(例如画出过顶时间窗口)。

几个值得一提的技术细节

1. 为什么是 geo2 而不是 geo?

Plotly 的 make_subplots 中,第二个 scattergeo 子图的配置键是 geo2(不是 geo)。写成 geo 会让配置静默失效,地图退化为默认样式。这是 Plotly 多子图场景下的经典陷阱。

2. numpy 预分配数组

ecef_arr = np.zeros((num_frames, 3))elevation_dict = {sname: np.zeros(num_frames) for sname in stations}
循环内零动态分配,避免反复 np.append 导致的内存重分配。
3. 动画帧中 type 必须显式声明
frame_data.append(dict(    type='scatter3d',   # 必须声明,否则 Plotly 默认按 scatter 处理    x=[pos[0]], y=[pos[1]], z=[pos[2]],    marker=dict(...)))
在动画帧的 data 字典中,如果不显式声明 type='scatter3d',Plotly 会默认当作 2D 的 scatter 处理,导致第三个维度丢失。
完整代码
import numpy as npimport pandas as pdfrom datetime import datetime, timedeltafrom astropy.time import Timefrom astropy.coordinates import (    ITRS, TEME, EarthLocation, CartesianRepresentation)import astropy.units as ufrom sgp4.api import Satrec, jdayimport plotly.graph_objects as gofrom plotly.subplots import make_subplots# ==================== 地球定向参数(必须在其他 astropy 导入前配置) ====================from astropy.utils import iersfrom astropy.utils.iers import IERS_Auto, IERS_B# 启用自动下载,保留高精度iers.conf.auto_download = Trueiers.conf.iers_auto_url = 'https://datacenter.iers.org/data/9/finals2000A.all'iers.conf.auto_max_age = 30  # 缓存有效期 30 天# 显式初始化:下载 IERS_A,失败则回退 IERS_Btry:    iers.IERS.iers_table = IERS_Auto.open()    print('IERS-A 高精度表格已加载')except Exception as e:    print(f'IERS-A 下载失败,回退内置 IERS-B: {e}')    iers.IERS.iers_table = IERS_B.open()# ==================== 常数 ====================R_EARTH = 6371.0                     # kmELEVATION_THRESHOLD = 5.0            # 可视仰角阈值 (°)# ==================== 多地面站定义 ====================stations = {    'Beijing': EarthLocation(lat=39.9 * u.deg, lon=116.4 * u.deg, height=0 * u.m),    'Shanghai': EarthLocation(lat=31.2 * u.deg, lon=121.4 * u.deg, height=0 * u.m),    'NewYork': EarthLocation(lat=40.7 * u.deg, lon=-74.0 * u.deg, height=0 * u.m),}# ==================== TLE 数据(国际空间站 + 示例卫星) ====================# 注意:可替换为最新的 TLE,从 celestrak.org 获取TLE_SETS = [    {        'name''ISS (ZARYA)',        'line1''1 25544U 98067A   24001.50000000  .00001234  00000+0  23456-4 0  9991',        'line2''2 25544  51.6420 123.4567 0001234  45.6789 314.5678 15.50123456123456',        'color''red'    },    {        'name''CSS (TIANHE)',        'line1''1 48274U 21035A   24001.50000000  .00000567  00000+0  12345-4 0  9992',        'line2''2 48274  41.4690  78.1234 0001567  89.1234 270.9876 15.61234567890123',        'color''cyan'    }]# ==================== SGP4 传播与坐标转换 ====================def tle_to_eci(sat, dt):    """通过 SGP4 计算卫星在 dt 时刻的 ECI (TEME) 位置 (km)"""    jd, fr = jday(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second)    error, pos, vel = sat.sgp4(jd, fr)    if error != 0:        raise RuntimeError(f"SGP4 error at {dt}{error}")    return np.array(pos)   # TEME 坐标系def teme_to_itrs(pos_teme, obstime):    """TEME -> ITRS (ECEF) 高精度转换"""    teme_cart = CartesianRepresentation(pos_teme * u.km)    teme = TEME(teme_cart, obstime=obstime)    itrs = teme.transform_to(ITRS(obstime=obstime))    return np.array([itrs.x.to(u.km).value,                     itrs.y.to(u.km).value,                     itrs.z.to(u.km).value])def compute_elevation(r_ecef, station):    """简单向量几何计算仰角(度),无需 astropy 变换链,速度极快"""    # 地面站 ECEF 坐标 (km)    r_sta = np.array([station.x.to(u.km).value,                       station.y.to(u.km).value,                       station.z.to(u.km).value])    # 卫星相对地面站的矢量    d = r_ecef - r_sta    # 地面站当地"上"方向(简化为地球球心径向)    up = r_sta / np.linalg.norm(r_sta)    # 仰角 = 90° − 天顶角    d_norm = np.linalg.norm(d)    if d_norm < 1e-6:        return 90.0    cos_zenith = np.dot(d / d_norm, up)    # clamp 防止浮点溢出    cos_zenith = max(-1.0min(1.0, cos_zenith))    return 90.0 - np.rad2deg(np.arccos(cos_zenith))# ==================== 时间轴构建 ====================# 传播 24 小时,200 帧start_time = datetime(2023121000)num_frames = 200duration = timedelta(hours=24)time_steps = [start_time + duration * i / num_frames for i in range(num_frames)]# ==================== 主计算循环 ====================all_sat_data = []   # 存放每颗卫星的完整数组for tle in TLE_SETS:    # 初始化 SGP4 卫星对象    sat = Satrec.twoline2rv(tle['line1'], tle['line2'])    name = tle['name']    color = tle['color']    # 预分配数组    ecef_arr = np.zeros((num_frames, 3))    lons = np.zeros(num_frames)    lats = np.zeros(num_frames)    # 为每个地面站存储仰角数组    elevation_dict = {sname: np.zeros(num_frames) for sname in stations}    times_out = []    for idx, t in enumerate(time_steps):        # SGP4 得到 TEME 位置        pos_teme = tle_to_eci(sat, t)        obstime = Time(t)        # TEME -> ITRS (ECEF)        r_ecef = teme_to_itrs(pos_teme, obstime)        ecef_arr[idx] = r_ecef        # 经纬度        x, y, z = r_ecef        lat = np.rad2deg(np.arctan2(z, np.sqrt(x**2 + y**2)))        lon = np.rad2deg(np.arctan2(y, x))        lats[idx] = lat        lons[idx] = lon        # 所有地面站仰角        for sname, sta in stations.items():            elev = compute_elevation(r_ecef, sta)            elevation_dict[sname][idx] = elev        times_out.append(t)    # 保存这颗卫星的所有数据    sat_data = {        'name': name,        'color': color,        'times': times_out,        'ecef': ecef_arr,        'lons': lons,        'lats': lats,        'elevations': elevation_dict    }    all_sat_data.append(sat_data)    # ---- 输出 CSV(每颗卫星一个文件) ----    df = pd.DataFrame({        'Time(UTC)': [t.strftime('%Y-%m-%d %H:%M:%S'for t in times_out],        'ECEF_X_km': ecef_arr[:, 0],        'ECEF_Y_km': ecef_arr[:, 1],        'ECEF_Z_km': ecef_arr[:, 2],        'Longitude_deg': lons,        'Latitude_deg': lats    })    for sname in stations:        df[f'Elevation_{sname}_deg'] = elevation_dict[sname]    csv_name = f"{name.replace(' ''_')}_trajectory.csv"    df.to_csv(csv_name, index=False, float_format='%.6f')    print(f"已保存 {csv_name} (含{len(stations)}个地面站仰角)")# ==================== 地球网格 ====================def sphere_mesh(radius, steps=60):    phi = np.linspace(0, np.pi, steps)    theta = np.linspace(02*np.pi, steps)    phi, theta = np.meshgrid(phi, theta)    x = radius * np.sin(phi) * np.cos(theta)    y = radius * np.sin(phi) * np.sin(theta)    z = radius * np.cos(phi)    return x, y, zx_e, y_e, z_e = sphere_mesh(R_EARTH)# ==================== 构建 Plotly 图形 ====================fig = make_subplots(    rows=1, cols=2,    specs=[[{'type''scatter3d'}, {'type''scattergeo'}]],    subplot_titles=('真实卫星三维空间轨迹 (TLE + SGP4)''星下点轨迹与地面站'),    column_widths=[0.650.35])# ---- 左图:3D 场景 ----fig.add_trace(go.Surface(    x=x_e, y=y_e, z=z_e,    colorscale='Blues', opacity=0.4,    showscale=False, name='地球'), row=1, col=1)scatter_indices = []   # 记录每颗卫星当前位置 trace 的索引(用于动画更新)for sat_data in all_sat_data:    color = sat_data['color']    name = sat_data['name']    # 空间轨迹线    fig.add_trace(go.Scatter3d(        x=sat_data['ecef'][:, 0], y=sat_data['ecef'][:, 1],        z=sat_data['ecef'][:, 2],        mode='lines', line=dict(color=color, width=2),        name=f"{name} 空间轨迹"    ), row=1, col=1)    # 星下点投影线    norms = np.linalg.norm(sat_data['ecef'], axis=1)    ground = R_EARTH * sat_data['ecef'] / norms[:, np.newaxis]    fig.add_trace(go.Scatter3d(        x=ground[:, 0], y=ground[:, 1], z=ground[:, 2],        mode='lines', line=dict(color=color, width=1.5, dash='dot'),        name=f"{name} 星下点投影"    ), row=1, col=1)    # 卫星当前位置(初始第一帧)    trace_idx = len(fig.data)    fig.add_trace(go.Scatter3d(        x=[sat_data['ecef'][00]], y=[sat_data['ecef'][01]],        z=[sat_data['ecef'][02]],        mode='markers', marker=dict(size=8, color=color, symbol='circle'),        name=f"{name} 当前位置"    ), row=1, col=1)    scatter_indices.append(trace_idx)# ---- 右图:2D 地图 + 地面站 ----# 1) 每颗卫星的完整星下点轨迹(实线)for sat_data in all_sat_data:    fig.add_trace(go.Scattergeo(        lon=sat_data['lons'], lat=sat_data['lats'],        mode='lines', line=dict(width=2, color=sat_data['color']),        name=f"{sat_data['name']} 星下点"    ), row=1, col=2)# 2) 地面站标记station_colors = ['gold''orange''magenta']  # 每个站一个颜色for (sname, sta), sc in zip(stations.items(), station_colors):    fig.add_trace(go.Scattergeo(        lon=[sta.lon.deg], lat=[sta.lat.deg],        mode='markers+text',        marker=dict(size=10, color=sc, symbol='star', line=dict(width=1, color='black')),        text=[sname],        textposition='top center',        name=f'地面站 {sname}'    ), row=1, col=2)# 地图风格(显式配置 geo2 子图,确保可旋转缩放)fig.update_layout(    geo2=dict(        projection=dict(            type='orthographic',            rotation=dict(lon=100, lat=30, roll=0)        ),        showcoastlines=True, coastlinecolor='Black',        showland=True, landcolor='lightgray',        showocean=True, oceancolor='lightblue',    ))# ==================== 动画帧 ====================frames = []for frame_idx in range(num_frames):    frame_data = []    for sat_idx, sat_data in enumerate(all_sat_data):        pos = sat_data['ecef'][frame_idx]        # 使用对 Beijing 站的仰角决定标记形状(也可以选择一个参考站)        elev_beijing = sat_data['elevations']['Beijing'][frame_idx]        marker_symbol = 'circle' if elev_beijing >= ELEVATION_THRESHOLD else 'x'        frame_data.append(dict(            type='scatter3d',            x=[pos[0]],            y=[pos[1]],            z=[pos[2]],            marker=dict(size=10, color=sat_data['color'], symbol=marker_symbol)        ))    frames.append(go.Frame(        data=frame_data,        traces=scatter_indices,        name=f"t{frame_idx}"    ))fig.frames = frames# 播放控件与时间滑块fig.update_layout(    updatemenus=[dict(        type='buttons',        buttons=[            dict(label='播放', method='animate',                 args=[None, {'frame': {'duration'80'redraw'True},                              'fromcurrent'True}]),            dict(label='暂停', method='animate',                 args=[[None], {'frame': {'duration'0'redraw'True},                                'mode''immediate''transition': {'duration'0}}])        ],        showactive=False,        x=0.1, y=0, xanchor='right', yanchor='top'    )],    sliders=[dict(        active=0,        yanchor='top', xanchor='left',        currentvalue={'prefix''UTC: '},        pad={'b'10't'50},        len=0.9, x=0.1,        steps=[dict(method='animate',                    args=[[f't{k}'], {'frame': {'duration'80'redraw'True},                                      'mode''immediate''transition': {'duration'0}}],                    label=time_steps[k].strftime('%H:%M'))               for k in range(0, num_frames, 5)]    )],    scene=dict(aspectmode='data',               xaxis_title='X ECEF (km)',               yaxis_title='Y ECEF (km)',               zaxis_title='Z ECEF (km)',               dragmode='turntable',               camera=dict(eye=dict(x=1.5, y=1.5, z=1.2))),    title='TLE 驱动多卫星轨迹与地面站可见性',    height=750)# ==================== 保存为 HTML ====================# output_html = 'satellite_animation.html'# fig.write_html(output_html)# print(f"交互式动画已保存至 {output_html},可直接用浏览器打开。")fig.show(config=dict(scrollZoom=True, displayModeBar=True, displaylogo=False))# 若仍希望在 notebook 中显示,可取消下一行注释# fig.show()
运行方式
pip install numpy pandas astropy sgp4 plotlypython tLETo3D-2D.py

扩展方向

  • 实时 TLE从 celestrak.orghttps://celestrak.org拉取最新 TLE 替换内置测试数据。

  • 更多地面站在 stations 字典中自由添加经纬度即可。

  • 可见性窗口分析对 Elevation_*_deg 列做阈值筛选,输出每个站的过顶时间表。

  • 碰撞预警雏形两星距离为 (|\vec{r}1 - \vec{r}2|),加阈值即可触发告警。

  • 保存 HTML取消最后一行的注释,用 fig.write_html() 导出独立文件分享给他人。

总结
以上是卫星轨道可视化领域的一个小而完整的范例:从最原始的 TLE 两行根数出发,经历 SGP4 外推、高精度坐标变换、多站仰角计算,最终汇聚为一幅交互式双视图动画。代码结构清晰、注释详尽,非常适合作为航天相关 Python 项目的起点。
Happy tracking! 🛰️

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-02 23:26:25 HTTP/2.0 GET : https://f.mffb.com.cn/a/499273.html
  2. 运行时间 : 0.933621s [ 吞吐率:1.07req/s ] 内存消耗:4,790.74kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=75db5f4af5344fac8544c84f5572740a
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.001077s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001373s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.025681s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.019880s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001706s ]
  6. SELECT * FROM `set` [ RunTime:0.002255s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001575s ]
  8. SELECT * FROM `article` WHERE `id` = 499273 LIMIT 1 [ RunTime:0.008861s ]
  9. UPDATE `article` SET `lasttime` = 1783005985 WHERE `id` = 499273 [ RunTime:0.016135s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.018655s ]
  11. SELECT * FROM `article` WHERE `id` < 499273 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.012840s ]
  12. SELECT * FROM `article` WHERE `id` > 499273 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.013172s ]
  13. SELECT * FROM `article` WHERE `id` < 499273 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.101489s ]
  14. SELECT * FROM `article` WHERE `id` < 499273 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.376021s ]
  15. SELECT * FROM `article` WHERE `id` < 499273 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.103361s ]
0.940031s