From 0837edb2cfb216ef16d0bb66635e44361e674a7f Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 11 Dec 2023 14:18:23 +0800 Subject: [PATCH] * userModel: refactor the unbind method. --- module/user/model.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/module/user/model.php b/module/user/model.php index aa282004bd..4fbdb90d7f 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -1411,15 +1411,17 @@ class userModel extends model } /** - * Unbind Ranzhi + * 解除禅道账号和 ZDOO 账号的绑定。 + * Unbind ZDOO account and ZenTao account. * - * @param string $account + * @param string $account * @access public - * @return void + * @return bool */ - public function unbind($account) + public function unbind(string $account): bool { $this->dao->update(TABLE_USER)->set('ranzhi')->eq('')->where('account')->eq($account)->exec(); + return !dao::isError(); } /**