更新版本管理
This commit is contained in:
parent
b8ead0bbfc
commit
0e9a22bbc5
@ -61,7 +61,7 @@ class Lhapp extends BaseController
|
|||||||
|
|
||||||
protected function getValidParams()
|
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['title'])) throw new ValidateException('title标题不能为空');
|
||||||
if (empty($data['content'])) throw new ValidateException('content内容不能为空');
|
if (empty($data['content'])) throw new ValidateException('content内容不能为空');
|
||||||
if (empty($data['type'])) throw new ValidateException('type类型不能为空');
|
if (empty($data['type'])) throw new ValidateException('type类型不能为空');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user