[api] add notifications

This commit is contained in:
xiaomlove
2022-03-31 16:28:08 +08:00
parent 3e4a5766c4
commit f91cd6f20a
28 changed files with 274 additions and 44 deletions

View File

@@ -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");
}
}