mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
[api] add notifications
This commit is contained in:
@@ -61,7 +61,7 @@ class CommentController extends Controller
|
||||
];
|
||||
$data = array_filter($data);
|
||||
foreach ($allTypes as $type) {
|
||||
if ($data['type'] == $type && empty($data[$type . "_id"])) {
|
||||
if ($data['type'] == $type && empty($data[$type])) {
|
||||
throw new \InvalidArgumentException("require {$type}_id");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user