|
@@ -92,7 +92,7 @@ class Honor extends BaseController
|
|
|
{
|
|
{
|
|
|
[$id] = UtilService::getMore([
|
|
[$id] = UtilService::getMore([
|
|
|
['id', 0, 'empty', '参数错误']
|
|
['id', 0, 'empty', '参数错误']
|
|
|
- ], $request, true);
|
|
|
|
|
|
|
+ ], $request);
|
|
|
(new HonorModel)->where("id", $id)->delete();
|
|
(new HonorModel)->where("id", $id)->delete();
|
|
|
return app('json')->success("荣誉删除成功");
|
|
return app('json')->success("荣誉删除成功");
|
|
|
}
|
|
}
|
|
@@ -117,7 +117,7 @@ class Honor extends BaseController
|
|
|
$post = UtilService::getMore([
|
|
$post = UtilService::getMore([
|
|
|
['uid', '', 'empty', '请输入用户UID'],
|
|
['uid', '', 'empty', '请输入用户UID'],
|
|
|
['honor', ''],
|
|
['honor', ''],
|
|
|
- ], $request, true);
|
|
|
|
|
|
|
+ ], $request);
|
|
|
$uid = (int)$post["uid"];
|
|
$uid = (int)$post["uid"];
|
|
|
if (empty($uid)) {
|
|
if (empty($uid)) {
|
|
|
return app('json')->fail("用户UID不能为空");
|
|
return app('json')->fail("用户UID不能为空");
|
|
@@ -171,7 +171,7 @@ class Honor extends BaseController
|
|
|
{
|
|
{
|
|
|
$post = UtilService::getMore([
|
|
$post = UtilService::getMore([
|
|
|
['uid', '', 'empty', '请输入用户UID'],
|
|
['uid', '', 'empty', '请输入用户UID'],
|
|
|
- ], $request, true);
|
|
|
|
|
|
|
+ ], $request);
|
|
|
$uid = (int)$post["uid"];
|
|
$uid = (int)$post["uid"];
|
|
|
if (empty($uid)) {
|
|
if (empty($uid)) {
|
|
|
return app('json')->fail("用户UID不能为空");
|
|
return app('json')->fail("用户UID不能为空");
|