当前位置:首页>iOSAPP>为了做个iOS长截图功能,我把OpenCV拉下来重新编译了下

为了做个iOS长截图功能,我把OpenCV拉下来重新编译了下

  • 2026-06-25 03:45:48
为了做个iOS长截图功能,我把OpenCV拉下来重新编译了下
众所周知iOS没有像Android提供一个系统级别的长截图功能,不过还好码小农有手。要不就手搓一个长截图功能吧。
普通用户阅读下方使用指南即可:
1.    苹果App Store搜索“码小农具”

2.    选择长截图功能

3.    选择右上角录屏按钮,或者选择左下角导入一段视频

4.    选择开始录屏

5.    截图完毕后,点击绿色框内按钮(二选一)停止录屏

6.    停止录屏

7.    回到“码小农具”,通过时间段选择器选择录屏当中真正长截图的部分,点击导出

8.    点击弹窗的“打开文件”

9.    选择自己想要的保存/发送方式

下面是技术内容,不感兴趣的小伙伴可以关闭了

OpenCV 编译过程

背景:

  1. 首先“码小农具”是码小农,精(胡)心(乱)设(瞎)计(搞)的iOS App,蹭着Apple的Mac Catalyst技术,完成了写一份代码,部署iOS+macOS双端。当然如果不是用了Mac Catalyst这个很先(小)进(众)的技术栈呢,可能也不需要这么折腾去重新编译OpenCV。

  2. 现在OpenCV已经提供了稳定的iOS Pack,官网下载即可,只可惜官网没有把提供Mac Catalyst专用的framework正确的打入xcframework中。原因是因为Mac Catalyst有一个iPad适配方案,可以复用iOS的framework,所以OpenCV的同学也没有关注到。

好了废话不多说了,下面是一些编译过程(不得不说现在的AI还是很有用的,95%的工作都是AI帮忙的,感谢Trae感谢GPT):

编译过程:

1.    官方提供了编译mac cataylst的编译脚本,可以通过调用OpenCV仓库下的这个脚本进行编译。

CATALYST_FLAGS="--framework_name opencv2 --disable-swift --without python --without java"python3 "$OPENCV_SRC/platforms/osx/build_framework.py" \        "$BUILD_DIR/catalyst" \        --catalyst_archs arm64,x86_64 \        --build_only_specified_archs \        $CATALYST_FLAGS
不过OpenCV的同学对Mac Catalyst的编译理解其实和苹果官方的定义是有差的,第一个就是MacCatalyst的库编译实际要用Mac的SDK,所以编译脚本要移除这行,还有embed_bitcode=False
可以从本地编译SDK里面看到,在MacOSX.sdk中有一份iOSSupport的目录,下面其实存着用于编译MacCatalyst上用到的iOS相关framework

2.    改完这部分之后,确实能打出framework,App编译时又遇到了链接错误:

Undefined symbols for architecture arm64:    "MatToUIImage(cv::Mat const&)", referenced from       +[MatConverters converMatToUIImage:] in opencv2[arm64][1181](MatConverters.o)    "UIImageToMat(UIImage const*, cv::Mat&, bool)", referenced from       +[MatConverters convertUIImageToMat:alphaExist:] in opencv2[arm64][1181](MatConverters.o)  ld: symbol(s) not found for architecture arm64

问题出在ios_conversions.mm文件中的预处理条件判断,该文件包含了MatToUIImageUIImageToMat函数的实现,但默认情况下Mac Catalyst被排除在编译范围之外:

// 原代码(错误)#if (TARGET_OS_IOS || TARGET_OS_VISION) && !TARGET_OS_MACCATALYST
修改源码的宏判断逻辑

3.    编译过程中,还遇到了Swift编译的问题,解决方式是打framework的时候不带Swift,加上“--disable-swift”,后期把编译的Swift文件以源码形式放到pod仓库中

python3 "$OPENCV_SRC/platforms/osx/build_framework.py" \    "$BUILD_DIR/catalyst" \    --catalyst_archs arm64 \    --build_only_specified_archs \    --framework_name opencv2 --disable-swift --without python --without java --iphoneos_deployment_target 12.0

4.    完整编译流程

4.1    确保已克隆 OpenCV 源码:

git clone --depth 1 --branch 4.13.0 https://github.com/opencv/opencv.git opencv_src

4.2    执行编译脚本build_opencv.sh

# 清理旧的 Catalyst 构建产物(如果存在)rm -rf build_manual# 运行编译脚本./build_opencv.sh
#!/bin/bashset -e# Directory setupBASE_DIR="$(cd "$(dirname "$0")" && pwd)"OPENCV_SRC="$BASE_DIR/opencv_src"BUILD_DIR="$BASE_DIR/build_manual"# Output directory is the same as the script directoryOUTPUT_DIR="$BASE_DIR"echo "=============================================================="echo "OpenCV XCFramework Builder (iOS + Simulator + Catalyst)"echo "Base Directory: $BASE_DIR"echo "=============================================================="# 1. Prepare Sourceif [ ! -d "$OPENCV_SRC" ]; then    echo "Cloning OpenCV source..."    git clone --depth 1 --branch 4.13.0 https://github.com/opencv/opencv.git "$OPENCV_SRC"else    echo "OpenCV source found at $OPENCV_SRC"fi# Clean previous buildsmkdir -p "$BUILD_DIR"# mkdir -p "$OUTPUT_DIR" # No need to create base dir as it exists# Check if XCFramework already existsif [ -d "$OUTPUT_DIR/opencv2.xcframework" ]; then    echo "Found existing opencv2.xcframework, skipping build steps..."    SKIP_BUILD=trueelse    SKIP_BUILD=falsefi# Common Flags# --without objc is added to disable ObjC bindings (C++ only)# --disable-swift is added to disable Swift bindings (C++ only)# We strictly control architectures to arm64 to avoid x86 issues and lipo failuresCOMMON_FLAGS="--framework_name opencv2 --disable-swift --without python --without java --iphoneos_deployment_target 12.0"if [ "$SKIP_BUILD" = false ]; thenecho ""echo "--------------------------------------------------------------"echo "STEP 1: Building for iOS Device (arm64)"echo "--------------------------------------------------------------"if [ -d "$BUILD_DIR/ios_device/opencv2.framework" ]; then    echo "Skipping iOS Device build (already exists)"else    python3 "$OPENCV_SRC/platforms/ios/build_framework.py" \        "$BUILD_DIR/ios_device" \        --iphoneos_archs arm64 \        --build_only_specified_archs \        $COMMON_FLAGSfifi # End of SKIP_BUILD checkif [ "$SKIP_BUILD" = false ]; thenecho ""echo "--------------------------------------------------------------"echo "STEP 2: Building for iOS Simulator (arm64)"echo "--------------------------------------------------------------"if [ -d "$BUILD_DIR/ios_sim/opencv2.framework" ]; then    echo "Skipping iOS Simulator build (already exists)"else    python3 "$OPENCV_SRC/platforms/ios/build_framework.py" \        "$BUILD_DIR/ios_sim" \        --iphonesimulator_archs arm64 \        --build_only_specified_archs \        $COMMON_FLAGSfifi # End of SKIP_BUILD checkif [ "$SKIP_BUILD" = false ]; thenecho ""echo "--------------------------------------------------------------"echo "STEP 3: Building for Mac Catalyst (arm64, x86_64)"echo "--------------------------------------------------------------"if [ -d "$BUILD_DIR/catalyst/opencv2.framework" ]; then    echo "Skipping Mac Catalyst build (already exists)"else    # Remove iOS specific flags for Catalyst build    CATALYST_FLAGS="--framework_name opencv2 --disable-swift --without python --without java"    python3 "$OPENCV_SRC/platforms/osx/build_framework.py" \        "$BUILD_DIR/catalyst" \        --catalyst_archs arm64,x86_64 \        --build_only_specified_archs \        $CATALYST_FLAGSfifi # End of SKIP_BUILD checkif [ "$SKIP_BUILD" = false ]; thenecho ""echo "--------------------------------------------------------------"echo "STEP 4: Creating XCFramework"echo "--------------------------------------------------------------"# Locate the framework bundles# Note: The build scripts usually output to <outdir>/opencv2.framework# But verify if they are inside a subdir.# ios/build_framework.py outputs directly to <outdir>/opencv2.framework (after lipo)# osx/build_framework.py outputs directly to <outdir>/opencv2.frameworkFRAMEWORK_IOS="$BUILD_DIR/ios_device/opencv2.framework"FRAMEWORK_SIM="$BUILD_DIR/ios_sim/opencv2.framework"FRAMEWORK_CAT="$BUILD_DIR/catalyst/opencv2.framework"if [ ! -d "$FRAMEWORK_IOS" ]; then    echo "Error: iOS Device framework not found at $FRAMEWORK_IOS"    exit 1fiif [ ! -d "$FRAMEWORK_SIM" ]; then    echo "Error: iOS Simulator framework not found at $FRAMEWORK_SIM"    exit 1fiif [ ! -d "$FRAMEWORK_CAT" ]; then    echo "Error: Catalyst framework not found at $FRAMEWORK_CAT"    exit 1fixcodebuild -create-xcframework \    -framework "$FRAMEWORK_IOS" \    -framework "$FRAMEWORK_SIM" \    -framework "$FRAMEWORK_CAT" \    -output "$OUTPUT_DIR/opencv2.xcframework"fi # End of SKIP_BUILD checkecho ""echo "=============================================================="echo "SUCCESS!"echo "XCFramework created at: $OUTPUT_DIR/opencv2.xcframework"echo "=============================================================="

4.3    拷贝生成的 Swift 文件

编译完成后,将生成的 Swift 文件拷贝到OpenCV pod仓库目录下:

# 拷贝所有 Swift 文件,注意实际文件夹在find yourfolder/OpenCV/build_manual/ios_device/build/build-arm64-iphoneos/modules/objc_bindings_generator/ios/gen/objc/ -name "*.swift" -exec cp {} yourfolder/OpenCV/Classes/ \;

4.4    为 Swift 文件添加 import

因为Swift文件不打包进framework,所以OpenCV脚本生成的Swift文件需要补上import opencv2语句:

#!/usr/bin/env python3directory = "/Users/bytedance/Desktop/Source/NanoSparrowApple/OpenCV/Classes"import_statement = "import opencv2"import osfor filename in os.listdir(directory):    if filename.endswith(".swift"):        filepath = os.path.join(directory, filename)        with open(filepath, "r"as f:            lines = f.readlines()        # Check if already imported        if any(import_statement in line for line in lines):            print(f"Skipping {filename}: already has import")            continue        new_lines = []        inserted = False        # Try to find existing imports        last_import_index = -1        for i, line in enumerate(lines):            if line.strip().startswith("import "):                last_import_index = i        if last_import_index != -1:            # Insert after the last import            lines.insert(last_import_index + 1, import_statement + "\n")        else:            # No imports found, insert at the beginning            lines.insert(0, import_statement + "\n")        # Write back        with open(filepath, "w"as f:            f.writelines(lines)        print(f"Updated {filename}")
将上述代码保存为add_imports.py并执行:
python3 add_imports.py

5.    验证结果

5.1    XCFramework 生成

编译成功后,会生成opencv2.xcframework,包含 iOS、Simulator 和 Catalyst 三个平台的库:

opencv2.xcframework/├── Info.plist├── ios-arm64_armv7_armv7s/├── ios-arm64_i386_x86_64-simulator/└── ios-arm64-maccatalyst/

5.2    Swift文件验证

检查Classes目录中的Swift 文件是否都已添加 import opencv2

ls yourfolder/OpenCV/Classes

输出示例:

ByteVectorExt.swift     DnnExt.swift            ImgcodecsExt.swift      MlExt.swift             VideoExt.swiftCalib3dExt.swift       DoubleVectorExt.swift   ImgprocExt.swift        ObjdetectExt.swift      VideoioExt.swiftCoreExt.swift          Features2dExt.swift     IntVectorExt.swift      PhotoExt.swiftCvTypeExt.swift        FloatVectorExt.swift    MatExt.swift            Typealiases.swift

6. 关键技术细节

6.1    iOS 代码复用:Catalyst 构建实际上复用了 iOS 的构建逻辑,通过 -DIOS=1宏来启用 iOS 代码库

6.2    编译条件:使用 Apple 的 TARGET_OS_*宏来区分不同平台

6.3    框架合并:最终通过 xcodebuild -create-xcframework命令将多个平台的框架合并为一个 XCFramework

6.4    依赖管理:自动处理所有第三方依赖(如 libpng、zlib 等)

6.5    Swift 扩展:生成的 Swift 文件提供了对 OpenCV 功能的 Swift 友好封装

附一些资料链接:
  1. https://developer.apple.com/documentation/uikit/mac-catalyst/

  2. https://opencv.org/releases/

  3. https://www.trae.ai

最新文章

随机文章

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