乐于分享
好东西不私藏

教你如何开发鸿蒙 APP —— 滑板 App 怎么做技巧记录

教你如何开发鸿蒙 APP —— 滑板 App 怎么做技巧记录

写在前面

大家好,我是一名写了十多年 Web 前端的老兵。从 jQuery 时代一路走到 React/Vue,CSS3 动画、requestAnimationFrame、Web Animation API 这些都算是看家本领。

去年,我开始转战鸿蒙生态,用 ArkTS 开发 App,这一路踩了不少坑,也积累了不少心得。

上一篇,我们解决了"怎么录制慢动作视频"的问题,这篇来解决"怎么管理滑板技巧数据"的问题。

这个需求在 Web 端很常见,比如用localStorageIndexedDB、或者后端 API。鸿蒙端的@ohos.data.preferences对应 Web 的localStorage。思路是一样的:设计数据结构、封装存储服务、实现 CRUD 操作。

这篇文章聊什么

板动录的数据管理,核心要解决的问题是:

  1. 技巧库怎么设计 — 滑板技巧的分类和属性
  2. 练习记录怎么存储 — 每次练习的数据结构
  3. 连招怎么管理 — 连招的创建、编辑、排序
  4. 统计怎么实现 — 练习趋势、技巧分布、成功率

第一步:设计技巧库

板动录有丰富的滑板技巧,覆盖 6 大类别:

// ArkTS - 技巧数据结构interface Trick {  id: string;  name: string;  category: 'basic' | 'flip' | 'grab' | 'grind' | 'slide' | 'balance';  categoryName: string;  difficulty: 'beginner' | 'intermediate' | 'advanced';  description: string;  tips: string[];}// 技巧分类const TRICK_CATEGORIES = [  { id: 'basic', name: '基础', color: '#3b82f6' },  { id: 'flip', name: '翻板', color: '#22c55e' },  { id: 'grab', name: '抓板', color: '#f59e0b' },  { id: 'grind', name: '磨板', color: '#ef4444' },  { id: 'slide', name: '滑行', color: '#8b5cf6' },  { id: 'balance', name: '平衡', color: '#ec4899' }];// 示例技巧const ALL_TRICKS: Trick[] = [  {    id: 'ollie',    name: 'Ollie',    category: 'basic',    categoryName: '基础',    difficulty: 'beginner',    description: '滑板最基础的跳跃动作',    tips: ['后脚点板''前脚刷板''同时起跳']  },  {    id: 'kickflip',    name: 'Kickflip',    category: 'flip',    categoryName: '翻板',    difficulty: 'intermediate',    description: '让滑板沿纵轴旋转一周',    tips: ['后脚点板''前脚刷板角''接板落地']  },  // ... 更多技巧];

React 对应版本:

// React - 技巧数据const TRICK_CATEGORIES = [  { id'basic', name: '基础', color: '#3b82f6' },  { id'flip', name: '翻板', color: '#22c55e' },  { id'grab', name: '抓板', color: '#f59e0b' },  { id'grind', name: '磨板', color: '#ef4444' },  { id'slide', name: '滑行', color: '#8b5cf6' },  { id'balance', name: '平衡', color: '#ec4899' }];const ALL_TRICKS = [  {    id'ollie',    name: 'Ollie',    category: 'basic',    categoryName: '基础',    difficulty: 'beginner',    description: '滑板最基础的跳跃动作',    tips: ['后脚点板''前脚刷板''同时起跳']  },  // ... 更多技巧];

第二步:设计练习记录

每次练习的数据结构:

// ArkTS - 练习记录数据结构interface SessionRecord {  idnumber;  datestring;  spotstring;       // 练习地点  durationnumber;   // 分钟  weatherstring;    // 天气  trainingTypestring// 训练类型  notesstring;  tricksSessionTrick[];}interface SessionTrick {  idstring;  namestring;  categorystring;  difficultystring;  landedboolean;    // 是否成功  attemptsnumber;   // 尝试次数}

React 对应版本:

// React - 练习记录数据const createSessionRecord = (data) => ({  id: Date.now(),  date: new Date().toISOString().slice(010),  spot: data.spot || '练习',  duration: data.duration,  weather: data.weather,  trainingType: data.trainingType,  notes: data.notes,  tricks: data.tricks});

第三步:封装存储服务

@ohos.data.preferences封装存储服务:

// StorageService.etsimport { preferences } from '@kit.ArkData';import { common } from '@kit.AbilityKit';export class StorageService {  private static instanceStorageService;  private prefInstance: preferences.Preferences | null = null;  private context: common.UIAbilityContext;  private constructor(context: common.UIAbilityContext) {    this.context = context;  }  static getInstance(context: common.UIAbilityContext): StorageService {    if (!StorageService.instance) {      StorageService.instance = new StorageService(context);    }    return StorageService.instance;  }  async getPreferences(): Promise<preferences.Preferences> {    if (!this.prefInstance) {      this.prefInstance = await preferences.getPreferences(this.context'bandonglu');    }    return this.prefInstance;  }  async getItem<T>(keystringdefaultValue: T): Promise<T> {    try {      const pref = await this.getPreferences();      const value = await pref.get(key, JSON.stringify(defaultValue));      return JSON.parse(value as string);    } catch (err) {      return defaultValue;    }  }  async setItem<T>(keystringvalue: T): Promise<boolean> {    try {      const pref = await this.getPreferences();      await pref.put(key, JSON.stringify(value));      await pref.flush();      return true;    } catch (err) {      return false;    }  }}

React 对应版本:

// React - 存储服务const StorageService = {  getItem(key, defaultValue) => {    try {      const value = localStorage.getItem(`app_bandonglu_${key}`);      return value ? JSON.parse(value) : defaultValue;    } catch (err) {      return defaultValue;    }  },  setItem(key, value) => {    try {      localStorage.setItem(`app_bandonglu_${key}`JSON.stringify(value));      return true;    } catch (err) {      return false;    }  }};

第四步:实现连招管理

创建、编辑、排序连招组合:

// ComboService.etsinterface Combo {  idnumber;  namestring;  tricksComboTrick[];  createdAtnumber;  updatedAtnumber;}interface ComboTrick {  trickIdstring;  trickNamestring;  ordernumber;}export class ComboService {  private storageStorageService;  constructor(context: common.UIAbilityContext) {    this.storage = StorageService.getInstance(context);  }  async getAll(): Promise<Combo[]> {    return await this.storage.getItem<Combo[]>('combos', []);  }  async add(comboCombo): Promise<boolean> {    const combos = await this.getAll();    combos.push({ ...combo, createdAtDate.now(), updatedAtDate.now() });    return await this.storage.setItem('combos', combos);  }  async update(comboCombo): Promise<boolean> {    const combos = await this.getAll();    const index = combos.findIndex(c => c.id === combo.id);    if (index === -1return false;    combos[index] = { ...combo, updatedAtDate.now() };    return await this.storage.setItem('combos', combos);  }  async delete(idnumber): Promise<boolean> {    const combos = await this.getAll();    const filtered = combos.filter(c => c.id !== id);    return await this.storage.setItem('combos', filtered);  }  async reorderTricks(comboIdnumbertrickIdsstring[]): Promise<boolean> {    const combos = await this.getAll();    const combo = combos.find(c => c.id === comboId);    if (!combo) return false;    combo.tricks = trickIds.map((id, index) => ({      trickId: id,      trickNameALL_TRICKS.find(t => t.id === id)?.name || '',      order: index    }));    combo.updatedAt = Date.now();    return await this.storage.setItem('combos', combos);  }}

React 对应版本:

// React - 连招服务const ComboService = {  getAll() => StorageService.getItem('combos', []),  add(combo) => {    const combos = ComboService.getAll();    combos.push({ ...combo, createdAtDate.now(), updatedAtDate.now() });    return StorageService.setItem('combos', combos);  },  update(combo) => {    const combos = ComboService.getAll();    const index = combos.findIndex(c => c.id === combo.id);    if (index === -1return false;    combos[index] = { ...combo, updatedAtDate.now() };    return StorageService.setItem('combos', combos);  },  delete(id) => {    const combos = ComboService.getAll();    const filtered = combos.filter(c => c.id !== id);    return StorageService.setItem('combos', filtered);  },  reorderTricks(comboId, trickIds) => {    const combos = ComboService.getAll();    const combo = combos.find(c => c.id === comboId);    if (!combo) return false;    combo.tricks = trickIds.map((id, index) => ({      trickId: id,      trickNameALL_TRICKS.find(t => t.id === id)?.name || '',      order: index    }));    combo.updatedAt = Date.now();    return StorageService.setItem('combos', combos);  }};

第五步:实现数据统计

基于练习记录,计算各种统计数据:

// StatsService.etsexport class StatsService {  private storageStorageService;  constructor(context: common.UIAbilityContext) {    this.storage = StorageService.getInstance(context);  }  async getOverview(): Promise<{    totalSessionsnumber;    totalMinutesnumber;    totalTricksnumber;    successRatenumber;    currentStreaknumber;  }> {    const sessions = await this.storage.getItem<SessionRecord[]>('sessions', []);    const totalSessions = sessions.length;    const totalMinutes = sessions.reduce((sum, s) => sum + s.duration0);    let totalAttempts = 0;    let totalLanded = 0;    sessions.forEach(s => {      s.tricks.forEach(t => {        totalAttempts += t.attempts;        if (t.landed) totalLanded++;      });    });    const successRate = totalAttempts > 0 ? Math.round((totalLanded / totalAttempts) * 100) : 0;    const dates = [...new Set(sessions.map(s => s.date))].sort();    const currentStreak = this.calculateStreak(dates);    return { totalSessions, totalMinutes, totalTricks: totalAttempts, successRate, currentStreak };  }  async getCategoryDistribution(): Promise<{ categorystringcategoryNamestringcountnumbercolorstring }[]> {    const sessions = await this.storage.getItem<SessionRecord[]>('sessions', []);    const categoryMap = new Map<stringnumber>();    sessions.forEach(s => {      s.tricks.forEach(t => {        categoryMap.set(t.category, (categoryMap.get(t.category) || 0) + 1);      });    });    return Array.from(categoryMap.entries()).map(([category, count]) => {      const cat = TRICK_CATEGORIES.find(c => c.id === category);      return {        category,        categoryName: cat?.name || category,        count,        color: cat?.color || '#6b7280'      };    });  }  async getWeeklyTrend(): Promise<{ weekstringcountnumber }[]> {    const sessions = await this.storage.getItem<SessionRecord[]>('sessions', []);    const weekMap = new Map<stringnumber>();    sessions.forEach(s => {      const date = new Date(s.date);      const weekStart = new Date(date);      weekStart.setDate(date.getDate() - date.getDay());      const weekKey = weekStart.toISOString().slice(010);      weekMap.set(weekKey, (weekMap.get(weekKey) || 0) + 1);    });    return Array.from(weekMap.entries())      .map(([week, count]) => ({ week, count }))      .sort((a, b) => a.week.localeCompare(b.week))      .slice(-12);  }  async getMostPracticedTricks(): Promise<{ trickIdstringtrickNamestringcountnumber }[]> {    const sessions = await this.storage.getItem<SessionRecord[]>('sessions', []);    const trickMap = new Map<stringnumber>();    sessions.forEach(s => {      s.tricks.forEach(t => {        trickMap.set(t.id, (trickMap.get(t.id) || 0) + 1);      });    });    return Array.from(trickMap.entries())      .map(([trickId, count]) => ({        trickId,        trickNameALL_TRICKS.find(t => t.id === trickId)?.name || trickId,        count      }))      .sort((a, b) => b.count - a.count)      .slice(010);  }  private calculateStreak(datesstring[]): number {    if (dates.length === 0return 0;    const today = new Date().toISOString().slice(010);    const yesterday = new Date(Date.now() - 86400000).toISOString().slice(010);    if (dates[dates.length - 1] !== today && dates[dates.length - 1] !== yesterday) {      return 0;    }    let streak = 1;    for (let i = dates.length - 2; i >= 0; i--) {      const curr = new Date(dates[i + 1]);      const prev = new Date(dates[i]);      const diffDays = (curr.getTime() - prev.getTime()) / 86400000;      if (diffDays === 1) {        streak++;      } else {        break;      }    }    return streak;  }}

React 对应版本:

// React - 统计服务const StatsService = {  getOverview() => {    const sessions = StorageService.getItem('sessions', []);    const totalSessions = sessions.length;    const totalMinutes = sessions.reduce((sum, s) => sum + s.duration0);    let totalAttempts = 0;    let totalLanded = 0;    sessions.forEach(s => {      s.tricks.forEach(t => {        totalAttempts += t.attempts;        if (t.landed) totalLanded++;      });    });    const successRate = totalAttempts > 0 ? Math.round((totalLanded / totalAttempts) * 100) : 0;    const dates = [...new Set(sessions.map(s => s.date))].sort();    const currentStreak = calculateStreak(dates);    return { totalSessions, totalMinutes, totalTricks: totalAttempts, successRate, currentStreak };  },  getCategoryDistribution() => {    const sessions = StorageService.getItem('sessions', []);    const categoryMap = {};    sessions.forEach(s => {      s.tricks.forEach(t => {        categoryMap[t.category] = (categoryMap[t.category] || 0) + 1;      });    });    return Object.entries(categoryMap).map(([category, count]) => {      const cat = TRICK_CATEGORIES.find(c => c.id === category);      return {        category,        categoryName: cat?.name || category,        count,        color: cat?.color || '#6b7280'      };    });  },  getWeeklyTrend() => {    const sessions = StorageService.getItem('sessions', []);    const weekMap = {};    sessions.forEach(s => {      const date = new Date(s.date);      const weekStart = new Date(date);      weekStart.setDate(date.getDate() - date.getDay());      const weekKey = weekStart.toISOString().slice(010);      weekMap[weekKey] = (weekMap[weekKey] || 0) + 1;    });    return Object.entries(weekMap)      .map(([week, count]) => ({ week, count }))      .sort((a, b) => a[0].localeCompare(b[0]))      .slice(-12);  },  getMostPracticedTricks() => {    const sessions = StorageService.getItem('sessions', []);    const trickMap = {};    sessions.forEach(s => {      s.tricks.forEach(t => {        trickMap[t.id] = (trickMap[t.id] || 0) + 1;      });    });    return Object.entries(trickMap)      .map(([trickId, count]) => ({        trickId,        trickNameALL_TRICKS.find(t => t.id === trickId)?.name || trickId,        count      }))      .sort((a, b) => b.count - a.count)      .slice(010);  }};

第六步:在页面中集成

把统计数据展示出来:

// ArkTS - 统计页面@Componentstruct Stats {  @State overviewany = {};  @State categoryDistributionany[] = [];  @State mostPracticedany[] = [];  async aboutToAppear() {    const statsService = new StatsService(getContext());    this.overview = await statsService.getOverview();    this.categoryDistribution = await statsService.getCategoryDistribution();    this.mostPracticed = await statsService.getMostPracticedTricks();  }  build() {    Scroll() {      Column() {        // 总览卡片        Card() {          Grid() {            GridItem() {              Text(this.overview.totalSessions?.toString() || '0')                .fontSize(24)                .fontWeight(FontWeight.Bold)              Text('练习次数')                .fontSize(12)                .fontColor('#666')            }            GridItem() {              Text(`${this.overview.successRate || 0}%`)                .fontSize(24)                .fontWeight(FontWeight.Bold)              Text('成功率')                .fontSize(12)                .fontColor('#666')            }            GridItem() {              Text(this.overview.currentStreak?.toString() || '0')                .fontSize(24)                .fontWeight(FontWeight.Bold)              Text('连续练习天数')                .fontSize(12)                .fontColor('#666')            }          }          .columnsTemplate('1fr 1fr 1fr')        }        // 分类分布        Card() {          Text('技巧分类分布')            .fontSize(16)            .fontWeight(FontWeight.Bold)            .margin({ bottom8 })          ForEach(this.categoryDistribution(itemany) => {            Row() {              Circle({ width12height12 })                .fill(item.color)              Text(item.categoryName)                .fontSize(14)                .margin({ left8 })                .layoutWeight(1)              Text(`${item.count}次`)                .fontSize(14)                .fontColor('#666')            }            .padding(4)          })        }        // 最常练习的技巧        Card() {          Text('最常练习的技巧')            .fontSize(16)            .fontWeight(FontWeight.Bold)            .margin({ bottom8 })          ForEach(this.mostPracticed(itemanyindexnumber) => {            Row() {              Text(`${index + 1}`)                .fontSize(14)                .fontColor('#666')                .width(24)              Text(item.trickName)                .fontSize(14)                .layoutWeight(1)              Text(`${item.count}次`)                .fontSize(14)                .fontColor('#666')            }            .padding(4)          })        }      }      .padding(16)    }  }}

React 对应版本:

// React - 统计页面function Stats() {  const [overview, setOverview] = useState({});  const [categoryDistribution, setCategoryDistribution] = useState([]);  const [mostPracticed, setMostPracticed] = useState([]);  useEffect(() => {    setOverview(StatsService.getOverview());    setCategoryDistribution(StatsService.getCategoryDistribution());    setMostPracticed(StatsService.getMostPracticedTricks());  }, []);  return (    <divclassName="p-4">      <divclassName="grid grid-cols-3 gap-4 mb-4">        <divclassName="text-center">          <pclassName="text-2xl font-bold">{overview.totalSessions || 0}</p>          <pclassName="text-xs text-gray-500">练习次数</p>        </div>        <divclassName="text-center">          <pclassName="text-2xl font-bold">{overview.successRate || 0}%</p>          <pclassName="text-xs text-gray-500">成功率</p>        </div>        <divclassName="text-center">          <pclassName="text-2xl font-bold">{overview.currentStreak || 0}</p>          <pclassName="text-xs text-gray-500">连续练习天数</p>        </div>      </div>      <divclassName="mb-4">        <h3className="font-semibold mb-2">技巧分类分布</h3>        {categoryDistribution.map(item => (          <divkey={item.category}className="flex items-center gap-2 py-1">            <divclassName="w-3 h-3 rounded-full"style={{background:item.color }} />            <spanclassName="flex-1">{item.categoryName}</span>            <spanclassName="text-gray-500">{item.count}次</span>          </div>        ))}      </div>      <div>        <h3className="font-semibold mb-2">最常练习的技巧</h3>        {mostPracticed.map((item, index) => (          <divkey={item.trickId}className="flex items-center gap-2 py-1">            <spanclassName="text-gray-500 w-6">{index + 1}</span>            <spanclassName="flex-1">{item.trickName}</span>            <spanclassName="text-gray-500">{item.count}次</span>          </div>        ))}      </div>    </div>  );}

踩坑提醒

  1. 数据迁移:如果 App 升级后数据结构变了,需要做数据迁移。建议在存储时加上版本号。

  2. 存储限制preferences适合存储小量数据(几 KB),如果数据量大(几 MB),建议用关系型数据库。

  3. 异步操作:鸿蒙的存储 API 都是异步的,需要async/await,不能在build()里直接调用。

  4. 数据备份:建议提供数据导出功能,防止用户卸载 App 后数据丢失。

  5. 性能优化:如果练习记录很多(几千条),查询和统计会很慢。建议用索引或者缓存优化。

总结

这篇文章带你走了一遍数据管理的完整流程:

  1. 技巧库设计:丰富的滑板技巧,6 大类别
  2. 练习记录:每次练习的数据结构
  3. 存储服务:用 preferences 封装 CRUD 操作
  4. 连招管理:连招的创建、编辑、排序
  5. 数据统计:练习趋势、技巧分布、成功率

核心思想就一个:设计好数据结构,封装好存储服务。数据结构是基础,存储服务是桥梁,业务逻辑是上层建筑。

两篇文章下来,板动录的核心功能 —— 慢动作录制和技巧记录 —— 就讲完了。如果你对滑板 App 开发感兴趣,可以去鸿蒙应用市场下载板动录体验一下,看看实际效果。

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-06-06 07:10:22 HTTP/1.1 GET : https://www.yeyulingfeng.com/a/716544.html
  2. 运行时间 : 0.195878s [ 吞吐率:5.11req/s ] 内存消耗:4,772.86kb 文件加载:145
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=59ef214d8b7dac9e71bf74707851b7a6
  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.001197s ] mysql:host=127.0.0.1;port=3306;dbname=wenku;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001409s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000695s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000647s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001248s ]
  6. SELECT * FROM `set` [ RunTime:0.000684s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001637s ]
  8. SELECT * FROM `article` WHERE `id` = 716544 LIMIT 1 [ RunTime:0.001369s ]
  9. UPDATE `article` SET `lasttime` = 1780701022 WHERE `id` = 716544 [ RunTime:0.001537s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 64 LIMIT 1 [ RunTime:0.000654s ]
  11. SELECT * FROM `article` WHERE `id` < 716544 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001184s ]
  12. SELECT * FROM `article` WHERE `id` > 716544 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.003331s ]
  13. SELECT * FROM `article` WHERE `id` < 716544 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002447s ]
  14. SELECT * FROM `article` WHERE `id` < 716544 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.006614s ]
  15. SELECT * FROM `article` WHERE `id` < 716544 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.005354s ]
0.199552s