zzwy2/app/validate/LinkProduct.php

17 lines
419 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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://开头'
];
}