17 lines
419 B
PHP
Executable File
17 lines
419 B
PHP
Executable File
<?php
|
||
namespace app\validate;
|
||
|
||
use think\Validate;
|
||
|
||
class LinkProduct extends Validate
|
||
{
|
||
protected $rule = [
|
||
'title' => 'require',
|
||
'url' => 'url',
|
||
];
|
||
protected $message = [
|
||
'title.require' => '名称必须',
|
||
'url.require' => '链接网址不能为空,以http://或https://开头',
|
||
'url.url' => '请填写有效的网址,以http://或https://开头'
|
||
];
|
||
} |