企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 8.3 注册功能 存放用户的数据主要用mySQL存放 基本的表结构是 ```sql create table user ( u_id bigint not null primary key AUTO_INCREMENT, u_name VARCHAR(40) not null, nicheng VARCHAR(40) not null, password VARCHAR(40) not null, phone VARCHAR(15) not null, createtime timestamp, email VARCHAR(40), constraint uq_nicheng unique(nicheng), constraint uq_u_name unique(u_name) ); ``` >客户端 web 发送GET请求, url:/reg 携带参数有 http://.../reg?type=9&user=username&pwd=pwd&flower_name=花名&tel=13591992539&email=123@163.com >服务端 首先nginx.conf配置文件 ```php location = /reg { fastcgi_pass 127.0.0.1:8081; fastcgi_index reg.cgi; include fastcgi.conf; } ``` 然后reg主要功能是解析web用户端的get请求数据然后分析数据并且入库。