# 微擎公众号TP6.0框架
**Repository Path**: u1s1it/official-account
## Basic Information
- **Project Name**: 微擎公众号TP6.0框架
- **Description**: 适用于微擎公众号模块的 TP6.0 框架
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 18
- **Forks**: 2
- **Created**: 2021-06-09
- **Last Updated**: 2025-12-24
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
ThinkPHP 6.0.8 微擎公众号框架
===============
> 运行环境要求PHP7.2+,兼容PHP8.0。
## 主要功能
* 兼容微擎版、独立版
* EasyWechat 网页授权
* 常见问题及其分类增删改查
* 上传图片、商户证书、绝对路径图片
* 系统配置、文件存储等数据自动初始化
* 自定义命令创建基础类库、逻辑层类文件
PHP技术交流群:[159789818](https://shang.qq.com/wpa/qunwpa?idkey=c25dbd4e063d339786ca5b1458b0ff1ef4f863dd3534a04017d9baf728372026)
使用文档:[https://www.kancloud.cn/monday/w7cc/content](https://www.kancloud.cn/monday/w7cc/content)
## 使用说明
#### 1. 修改 site.php
~~~php
// +----------------------------------------------
// | 公众号前端
// +----------------------------------------------
/**
* 前端入口
*/
public function doMobileIndex()
{
//这个操作被定义用来呈现 功能封面
require __DIR__ . '/public/index.php';
}
// +----------------------------------------------
// | 后台管理系统
// +----------------------------------------------
/**
* 后台管理系统
*
* @example 正式环境入口
*/
public function doWebAdmin()
{
//这个操作被定义用来呈现 管理中心导航菜单
require __DIR__ . '/public/admin.php';
}
/**
* 后台管理系统
*
* 仅在开发环境使用,上传版本时记得将本方法注释掉
*/
public function doMobileAdmin()
{
//这个操作被定义用来呈现 功能封面
require __DIR__ . '/public/admin.php';
}
~~~
#### 2. 修改 manifest.xml 文件, 设置安装模块、升级模块、卸载模块时执行的文件
~~~xml
~~~
#### 3. 前端入口两种访问方式
默认方式
~~~
http://me.cy/app/index.php?i=2&c=entry&eid=23
~~~
自定义访问: 将 `eid` 参数改为 `do=index&m=lingchi_dev`
~~~
http://me.cy/app/index.php?i=2&c=entry&do=index&m=lingchi_dev
~~~
#### 4. 前端接口
+ 独立版
~~~
http://liang8080.natapp1.cc/problem/getLists
~~~
+ 微擎版
+ 接口地址: s 参数值
+ 动态参数: i、eid 参数通过模板赋值动态取
~~~
http://me.cy/app/index.php?i=2&c=entry&eid=23&s=/problem/getLists
~~~
+ 前端打包静态资源路径(模块标识: lingchi_dev)
~~~
/addons/lingchi_dev/view/index
~~~
#### 5. 后台管理系统接口(前后端分离)
+ 接口地址: s 参数值
+ 正式环境:eid、version_id 参数通过模板赋值动态取
~~~
http://me.cy/web/index.php?c=site&a=entry&eid=24&version_id=0&s=/user/lists
~~~
+ 接口地址: s 参数值
+ 开发环境:i、m 参数值固定即可
~~~
http://me.cy/app/index.php?i=2&c=entry&do=admin&m=lingchi_dev&s=/user/lists
~~~