Pear Admin Webman 基于 webman + Pear Admin Layui 開發(fā)
composer create-project hsk99/webman-admin
克隆項目 git clone https://github.com/hsk99/webman-admin
安裝包依賴 composer install
數(shù)據(jù)庫 config/thinkorm.php
Redis config/redis.php
RedisQueue config/plugin/webman/redis-queue/redis.php
服務異常通知 config/plugin/hsk99/exception/app.php
啟動服務 php start.php start
瀏覽器訪問 http://127.0.0.1:8787
config/app.php
debug = true
第一步 約定字段類型必須"XXX_XXX"
第二步 選擇數(shù)據(jù)表生成。
建議定義軟刪除delete_time,自動生成回收站功能。如不需要可自行刪除。
修改 app
目錄下 admin
文件夾名稱
修改 app/admin
目錄下文件的命名空間 app\admin
修改 config/middleware.php 中間件配置
修改 config/event.php Event事件配置
僅供技術研究使用,請勿用于非法用途,否則產(chǎn)生的后果作者概不負責。
layui.js:1 GET http://localhost:8787/static/component/layui/css/module/tag.css net::ERR_ABORTED 404 (Not Found)
不知道怎么報引入問題了,看引入沒有找到這個
全局函數(shù)文件能不能加上這個redis鎖。。。
use support\Redis;
/**
function redis_lock($cachekey, $value, $expire_time)
{
return Redis::set($cachekey, $value, 'EX', $expire_time, 'NX');
}
/**
這個跑一段時間之后,這個CPU占用太猛了
mysqld進程直接cpu占用超過90%,停掉就正常了
http://wtbis.cn/q/11037
原來老大的那個有排序的問題呀~
不知道大佬的有沒有。
http://wtbis.cn/upload/img/20230912/1265005590368f.png
我前端各種試,一直不行。折騰了很久,搜到老哥這個貼,也算解決了。但不知道為什么前端不能排序也不能傳get 參數(shù)。。這是為何??
不知道大佬的會不會?回頭試下~
大佬請教一個問題,寶塔加了ssl安全證書,全局搜索,改https的,然后找到 webman-admin\config\server.php 將http改成https 'listen' => 'http://0.0.0.0:8787', 重啟訪問https://xxx.xxx.com:8787 一直轉
一開始以為是我的端口有問題 ,用tcping 端口 沒問題
后面看提示 說 Fatal error: Uncaught Exception: class \Protocols\Https not exist in 沒找到這玩意,根據(jù)路徑只看見到了 http類沒有https的,是我改漏了還是需要補文件呢
ErrorException: Implicit conversion from float 1705459886.612676 to int loses precision in /Users/xx/Sites/webman-admin/support/hsk99/bootstrap/ThinkOrmLog.php:29
??