This commit is contained in:
liumengyi
2022-09-06 15:30:21 +08:00
parent 6e118674b9
commit b7fa4bd754
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -1212,9 +1212,8 @@ EOF;
$_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::end(js::error(dao::getError()));
echo js::locate($this->createLink('my', 'profile'), 'parent');
return;
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('my', 'profile'), 'closeModal' => true));
}
$this->app->loadConfig('user');
+1 -1
View File
@@ -17,7 +17,7 @@
<div class='main-header'>
<h2><i class='icon-pencil'></i> <?php echo $lang->my->editProfile;?></h2>
</div>
<form method='post' target='hiddenwin' id='dataform'>
<form method='post' class='form-ajax' id='dataform'>
<table class='table table-form'>
<caption><?php echo $lang->my->form->lblBasic;?></caption>
<tr>