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小时,暂不能签到');