原文:thinkphp6: 用middleware 記錄操作日志(php 8.1.1 / thinkphp v6.0.10LTS )

一,編寫php代碼: ,創建寫日志的middleware: ,middleware AdminLog.php 說明:用戶id應該從token或session獲取,此處僅演示用 ,app middleware.php ,lib util BusinessLog.php 說明:劉宏締的架構森林是一個專注架構的博客, 網站:https: blog.imgtouch.com本文:https: blog. ...

2022-01-15 10:30 0 1203 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM