# Lge_Playard **Repository Path**: johng/Lge_Playard ## Basic Information - **Project Name**: Lge_Playard - **Description**: Lge示例项目版本库 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2017-04-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 这是使用Lge框架的混合示例项目(仅作参考) 1. 本项目包含多干个分站示例,包括:示例分站、管理后台、微信前台、溯源系统、管理工具、定时程序等等; 2. 温馨提示:本项目文件容量较大,/static/plugin目录中包含若干开源项目,请根据需要打包下载特定目录内容; ## Crontab 定时任务(示例) */10 * * * * cd 项目src本地路径 && php index.php --s=crontab --c=ip-updater 2>&1 & 0 1 * * * cd 项目src本地路径 && php index.php --s=crontab --c=backupper 2>&1 & ## 子站点说明 system ├── admin 通用管理后台(AceAdmin) ├── apidoc API接口文档站点,用于展示API接口的输入输出 ├── crontab Linux下Crontab定时任务 ├── default 默认站点(一般什么都不做,或者用于展示主站) ├── demo 示例站点,包含一些示例代码 ├── tool 管理工具(目前包含一个数据库字典生成工具和一个项目SQL初始化工具) └── wechat 微信前台 ## 自动缩略图脚本,需要增加Nginx重写规则支持 location ~* \.(png|jpg|jpeg|gif)$ { set $w 0; set $h 0; set $dst ""; set $path ""; if ($request_uri ~* "\.(png|jpg|jpeg|gif)\?(\d+)_(\d+)") { set $t $1; set $w $2; set $h $3; set $dst "${uri}.${w}x${h}.${t}"; set $path "${document_root}${dst}"; } if ( -f $path) { rewrite ^/.*$ $dst; break; } if ($w != 0) { rewrite ^/.*$ /index.php?__s=default&__c=image&__a=auto&src=$uri&dst=$dst&w=$w&h=$h; expires 1d; } # try_files }