更新版本管理

This commit is contained in:
yaooo 2023-09-11 15:18:06 +08:00
parent b8ead0bbfc
commit 0e9a22bbc5

View File

@ -61,7 +61,7 @@ class Lhapp extends BaseController
protected function getValidParams()
{
$data = $this->request->params(['title', 'content', 'type', 'version', 'dow_url', 'force', 'quiet']);
$data = $this->request->params(['title', 'content', 'type', 'phone_brand', 'version', 'dow_url', 'force', 'quiet']);
if (empty($data['title'])) throw new ValidateException('title标题不能为空');
if (empty($data['content'])) throw new ValidateException('content内容不能为空');
if (empty($data['type'])) throw new ValidateException('type类型不能为空');