增加项目描述

This commit is contained in:
lingling 2025-02-18 10:42:55 +08:00
parent 0ae5e61425
commit 0333a200b2
2 changed files with 10 additions and 4 deletions

View File

@ -1,18 +1,22 @@
apidoc apidoc
```
http://127.0.0.1:8787/apidoc/index.html#/
``` ```
http://127.0.0.1:8787/apidoc/index.html#/
```
Dev Dev
``` ```
win php windows.php win php windows.php
linux linux
``` ```
一些状态码 一些状态码
``` ```
401 登录失效需要重新登录 401 登录失效需要重新登录
402 通用错误 402 通用错误
``` ```
使用的一些插件地址 使用的一些插件地址
``` ```
easy-sms https://github.com/overtrue/easy-sms easy-sms https://github.com/overtrue/easy-sms
@ -20,9 +24,11 @@ webman命令行 https://www.workerman.net/plugin/1
php 解析html文档 https://simplehtmldom.sourceforge.io/docs/1.9/quick-start/ php 解析html文档 https://simplehtmldom.sourceforge.io/docs/1.9/quick-start/
``` ```
数据库放在sql目录下 数据库放在sql目录下
```NGINX配置 NGINX配置
```
location /api/ { location /api/ {
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token,Jxudpappid"; add_header Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token,Jxudpappid";

View File

@ -60,7 +60,7 @@ class SignController
*/ */
public function sign(Request $request) public function sign(Request $request)
{ {
//这里需要根据 业务逻辑判断 能不能签到 //这里 补签没做 逻辑不清晰
$user_id=$request->data['id']; $user_id=$request->data['id'];
if(!UserPhoneLogDao::getOnlineTimeByPhoneTodayId($user_id)){ if(!UserPhoneLogDao::getOnlineTimeByPhoneTodayId($user_id)){
return ApiResponseApp::error([],'挂机时长没有超过6小时暂不能签到'); return ApiResponseApp::error([],'挂机时长没有超过6小时暂不能签到');