Merge branch 'feature/admin_optimize' into release

master
liuweiwen 5 years ago
commit fbdd7a4339

@ -316,7 +316,11 @@ class StatementMangementController extends ThinkController
}
if ($id) {
$upt = M('reward_record', 'tab_')->where(['id'=>$id])->save($data);
return $upt ? $this->success('更新成功', U('StatementMangement/rewardManageList')) : $this->error('更新失败');
if ($upt === false) {
$this->error('保存失败');
} else {
$this->success('保存成功', U('StatementMangement/rewardManageList'));
}
} else {
$data['create_time'] = time();
$data['creater_id'] = is_login();

Loading…
Cancel
Save