zzwy2/app/validate/LinkProduct.php

17 lines
419 B
PHP
Raw Normal View History

2022-10-08 09:31:39 +00:00
<?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://开头'
];
}