diff --git a/Application/Admin/Controller/StatementMangementController.class.php b/Application/Admin/Controller/StatementMangementController.class.php index 40b6eaedb..f6e986469 100644 --- a/Application/Admin/Controller/StatementMangementController.class.php +++ b/Application/Admin/Controller/StatementMangementController.class.php @@ -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();