From 0333a200b256b915cbc1c0fbcfec46c578af1edb Mon Sep 17 00:00:00 2001 From: lingling Date: Tue, 18 Feb 2025 10:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++++--- app/controller/api/SignController.php | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 22a724d..f5f5403 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,22 @@ apidoc -``` -http://127.0.0.1:8787/apidoc/index.html#/ ``` +http://127.0.0.1:8787/apidoc/index.html#/ +``` + Dev ``` win php windows.php linux ``` + 一些状态码 + ``` 401 登录失效需要重新登录 402 通用错误 ``` + 使用的一些插件地址 ``` 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/ ``` + 数据库放在sql目录下 -```NGINX配置 +NGINX配置 +``` location /api/ { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token,Jxudpappid"; diff --git a/app/controller/api/SignController.php b/app/controller/api/SignController.php index 69d7adc..9d135b5 100644 --- a/app/controller/api/SignController.php +++ b/app/controller/api/SignController.php @@ -60,7 +60,7 @@ class SignController */ public function sign(Request $request) { - //这里需要根据 业务逻辑判断 能不能签到 + //这里 补签没做 逻辑不清晰 $user_id=$request->data['id']; if(!UserPhoneLogDao::getOnlineTimeByPhoneTodayId($user_id)){ return ApiResponseApp::error([],'挂机时长没有超过6小时,暂不能签到');