no message

This commit is contained in:
kuaifan 2022-04-13 14:57:30 +08:00
parent 6cd3449571
commit f76016860f
3 changed files with 13 additions and 3 deletions

View File

@ -507,8 +507,8 @@ class DialogController extends AbstractController
* @apiGroup dialog * @apiGroup dialog
* @apiName msg__mark * @apiName msg__mark
* *
* @apiParam {Number} dialog_id 消息ID * @apiParam {Number} dialog_id 会话ID
* @apiParam {String} type 类型 * @apiParam {String} type 类型
* - read * - read
* - unread * - unread
* *

View File

@ -546,7 +546,7 @@ class UsersController extends AbstractController
break; break;
case 'delete': case 'delete':
$userInfo->delete(); $userInfo->deleteUser();
break; break;
} }
if (isset($upArray['identity'])) { if (isset($upArray['identity'])) {

View File

@ -169,6 +169,16 @@ class User extends AbstractModel
} }
} }
/**
* 删除会员
* @return bool|null
*/
public function deleteUser()
{
UserEmailVerification::whereEmail($this->email)->delete();
return $this->delete();
}
/** ***************************************************************************************** */ /** ***************************************************************************************** */
/** ***************************************************************************************** */ /** ***************************************************************************************** */
/** ***************************************************************************************** */ /** ***************************************************************************************** */