Compare commits

..

No commits in common. "ce8a9ee86465f0e5cc9159697ba1f18c8c8801b5" and "8fab1c0c3dc469241869304644c78360cfb41707" have entirely different histories.

2 changed files with 3 additions and 9 deletions

View File

@ -1,22 +1,18 @@
apidoc
```
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
@ -24,11 +20,9 @@ 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";

View File

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