Fix die naming compatibility

This commit is contained in:
Yurun
2021-12-21 14:25:53 +08:00
parent f6e6ef8bff
commit c19e44c044
2 changed files with 2 additions and 2 deletions

View File

@@ -255,7 +255,7 @@ class helper extends baseHelper
* @param string $content
* @return void
*/
public static function die($content)
public static function end($content)
{
throw EndResponseException::create($content);
}

View File

@@ -826,7 +826,7 @@ class my extends control
$_POST['account'] = $this->app->user->account;
$_POST['groups'] = $this->dao->select('`group`')->from(TABLE_USERGROUP)->where('account')->eq($this->post->account)->fetchPairs('group', 'group');
$this->user->update($this->app->user->id);
if(dao::isError()) helper::die(js::error(dao::getError()));
if(dao::isError()) helper::end(js::error(dao::getError()));
echo js::locate($this->createLink('my', 'profile'), 'parent');
return;
}