更新是否小队长接口 (#7)
Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/7
This commit is contained in:
parent
a27f263e31
commit
6eda1fdbff
@ -17,6 +17,7 @@ namespace app\api\controller;
|
|||||||
use app\api\validate\{LoginAccountValidate, RegisterValidate, WebScanLoginValidate, WechatLoginValidate};
|
use app\api\validate\{LoginAccountValidate, RegisterValidate, WebScanLoginValidate, WechatLoginValidate};
|
||||||
use app\api\logic\LoginLogic;
|
use app\api\logic\LoginLogic;
|
||||||
use app\Request;
|
use app\Request;
|
||||||
|
use app\api\logic\UserLogic;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录注册
|
* 登录注册
|
||||||
@ -56,6 +57,16 @@ class LoginController extends BaseApiController
|
|||||||
return $this->fail(LoginLogic::getError());
|
return $this->fail(LoginLogic::getError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setInfo()
|
||||||
|
{
|
||||||
|
$params=Request()->param();
|
||||||
|
$result = UserLogic::setInfo($params['user_id'], ['field'=>'is_captain','value'=>$params['is_captain']]);
|
||||||
|
if (false === $result) {
|
||||||
|
return $this->fail(UserLogic::getError());
|
||||||
|
}
|
||||||
|
return $this->success('操作成功', [], 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @notes 账号密码/手机号密码/手机号验证码登录
|
* @notes 账号密码/手机号密码/手机号验证码登录
|
||||||
* @return \think\response\Json
|
* @return \think\response\Json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user