pull/1/head
lqmac 11 months ago
parent 8c7087fd41
commit 676ba29d4e
  1. 9
      app/api/controller/User.php

@ -34,6 +34,15 @@ use think\response\Json;
*/ */
class User extends Controller class User extends Controller
{ {
/**
* 注销账号
* [delete description]
* @return [type] [description]
*/
public function delete(){
$user_id = UserService::getCurrentLoginUserId();
UserModel::where('user_id', $user_id)->update(['is_delete' => 1,'update_time' => time()]);
}
/** /**
* 当前用户详情 * 当前用户详情
* @return Json * @return Json

Loading…
Cancel
Save