06-09 358人


接口:压缩包中的 api.zip 上传解压到服务器,php 版本设置为 7.2,设置伪静态:
|
|
add_header Access-Control-Allow-Origin *; |
|
|
add_header Access-Control-Allow-Headers *; |
|
|
location / {if (!-e $request_filename){rewrite ^(.*)$ /index.php?s=$1 last; break; |
|
|
} |
|
|
} |
使用方法
1. 将数据库上传到服务器内
2. 将.env 文件中的数据库 ip 名称 账号 密码 端口 都改成自己对应的
欢迎留言