From 8611ad8515b1096d8bef69ede06368913bc5097a Mon Sep 17 00:00:00 2001 From: gitee-bot Date: Mon, 11 May 2026 11:19:21 +0000 Subject: [PATCH] Add README.md --- README.en.md | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 244 insertions(+) create mode 100644 README.en.md create mode 100644 README.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..860f386 --- /dev/null +++ b/README.en.md @@ -0,0 +1,121 @@ +# Tianlin Funding + +Tianlin Funding Management System is a public welfare fund information management platform developed based on the ThinkPHP framework. + +## Project Overview + +Tianlin Funding is a feature-rich public welfare fund information management system built with the ThinkPHP framework. It supports core functionalities such as online fund management, donation processes, and a user center. + +## Technology Stack + +- **Backend Framework**: ThinkPHP +- **Frontend**: HTML/CSS/JavaScript, using KindEditor rich text editor +- **Database**: Supports multiple databases including MySQL, SQLite, PostgreSQL, Oracle, and MongoDB +- **Caching**: Supports multiple cache drivers including Memcache, Redis, APC, File, and SQLite +- **Third-party Integrations**: + - Sina Weibo OAuth2.0 login + - Taobao Open Platform API + - Chinese word segmentation system (SCWS) + +## Directory Structure + +``` +tianlin-funding/ +├── Lib/Action/ # Controller layer +├── Lib/Model/ # Model layer +├── Tpl/ # Template views +├── includes/ # Included files +│ ├── thinkphp/ # ThinkPHP framework core +│ └── kindeditor/ # Rich text editor +├── data/ # Data directory +│ ├── user/ # User-uploaded files +│ └── adboard/ # Advertisement board configuration +├── config.inc.php # Configuration file +└── nginx.conf # Nginx configuration +``` + +## System Requirements + +- PHP 5.3+ +- MySQL 5.0+ or other supported databases +- Web server (Apache/Nginx/IIS) + +## Installation & Configuration + +1. **Environment Requirements** + - Ensure PHP is installed with required PHP extensions configured + - Create a MySQL database and import the data + +2. **Database Configuration** + Modify the database connection details in `config.inc.php`: + ```php + define('DB_HOST', 'localhost'); + define('DB_NAME', 'your_database'); + define('DB_USER', 'your_username'); + define('DB_PWD', 'your_password'); + ``` + +3. **Directory Permissions** + Ensure the following directories are writable: + - The `data/` directory and its subdirectories + - The `Runtime/` directory (if using ThinkPHP) + +## Third-party Login Configuration + +### Sina Weibo OAuth + +Set the Weibo Open Platform application keys in the configuration file: +```php +define('WEIBO_APPKEY', 'your_app_key'); +define('WEIBO_APPSECRET', 'your_app_secret'); +``` + +## Running the Project + +### Using PHP Built-in Server (Development) + +```bash +php -S localhost:8000 +``` + +### Using Nginx + +Refer to the `nginx.conf` file in the project root directory for configuration. + +### Using Apache + +Ensure the `mod_rewrite` module is enabled and refer to the `.htaccess` file for configuration. + +## Features + +- User registration and login (supports Sina Weibo OAuth login) +- Fund management and display +- Donation process management +- News and information publishing +- Image upload and management +- Rich text content editing +- Multi-language support + +## Frequently Asked Questions + +### Clearing Cache + +Access the admin panel or manually delete cache files under the `Runtime/` directory. + +### File Upload Size Limit + +Modify the PHP configuration parameters `upload_max_filesize` and `post_max_size`. + +## License + +This project is intended solely for learning and communication purposes. + +## Changelog + +- Initial release +- Added Sina Weibo login support +- Integrated Taobao Open Platform API + +--- + +For any issues, please submit an Issue or contact the development team. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..fcff509 --- /dev/null +++ b/README.md @@ -0,0 +1,123 @@ + + +# 天霖基金 Tianlin Funding + +天霖基金管理系统是一个基于 ThinkPHP 框架开发的公益基金信息管理平台。 + +## 项目简介 + +天霖基金是一款功能完善的公益基金信息管理系统,采用 ThinkPHP 框架开发,支持在线基金管理、捐赠流程、用户中心等核心功能。 + +## 技术栈 + +- **后端框架**: ThinkPHP +- **前端**: HTML/CSS/JavaScript,使用 KindEditor 富文本编辑器 +- **数据库**: 支持 MySQL、SQLite、PostgreSQL、Oracle、MongoDB 等多种数据库 +- **缓存**: 支持 Memcache、Redis、APC、File、Sqlite 等多种缓存驱动 +- **第三方集成**: + - 新浪微博 OAuth2.0 登录 + - 淘宝开放平台 API + - 中文分词系统 (SCWS) + +## 目录结构 + +``` +tianlin-funding/ +├── Lib/Action/ # 控制器层 +├── Lib/Model/ # 模型层 +├── Tpl/ # 模板视图 +├── includes/ # 引入文件 +│ ├── thinkphp/ # ThinkPHP 框架核心 +│ └── kindeditor/ # 富文本编辑器 +├── data/ # 数据目录 +│ ├── user/ # 用户上传文件 +│ └── adboard/ # 广告板配置 +├── config.inc.php # 配置文件 +└── nginx.conf # Nginx 配置 +``` + +## 系统要求 + +- PHP 5.3+ +- MySQL 5.0+ 或其他支持的数据库 +- Web 服务器 (Apache/Nginx/IIS) + +## 安装配置 + +1. **环境要求** + - 确保 PHP 已安装并配置好所需的 PHP 扩展 + - 创建 MySQL 数据库并导入数据 + +2. **数据库配置** + 修改 `config.inc.php` 中的数据库连接信息: + ```php + define('DB_HOST', 'localhost'); + define('DB_NAME', 'your_database'); + define('DB_USER', 'your_username'); + define('DB_PWD', 'your_password'); + ``` + +3. **目录权限** + 确保以下目录可写: + - `data/` 目录及其子目录 + - `Runtime/` 目录 (如使用 ThinkPHP) + +## 第三方登录配置 + +### 新浪微博 OAuth + +在配置文件中设置微博开放平台应用密钥: +```php +define('WEIBO_APPKEY', 'your_app_key'); +define('WEIBO_APPSECRET', 'your_app_secret'); +``` + +## 运行项目 + +### 使用 PHP 内置服务器(开发环境) + +```bash +php -S localhost:8000 +``` + +### 使用 Nginx + +参考项目根目录下的 `nginx.conf` 文件进行配置。 + +### 使用 Apache + +确保开启 `mod_rewrite` 模块,参考 `.htaccess` 文件配置。 + +## 功能特性 + +- 用户注册与登录(支持微博 OAuth 登录) +- 基金管理与展示 +- 捐赠流程管理 +- 新闻资讯发布 +- 图片上传与管理 +- 富文本内容编辑 +- 多语言支持 + +## 常见问题 + +### 清除缓存 + +访问管理后台或手动删除 `Runtime/` 目录下的缓存文件。 + +### 上传文件大小限制 + +修改 PHP 配置 `upload_max_filesize` 和 `post_max_size` 参数。 + +## 许可证 + +本项目仅供学习交流使用。 + +## 更新日志 + +- 初始版本发布 +- 支持新浪微博登录 +- 集成淘宝开放平台接口 + +--- + +如有问题,请提交 Issue 或联系开发团队。 \ No newline at end of file -- Gitee