123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * NewsValidate.php UTF-8
- *
- *
- * @date : 2017/11/23 23:43
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : wuyonghong <wyh@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace api\wapapp\validate;
- class NewsValidate extends BaseValidate {
- protected $scene
- = [
- 'check' => ['sign', 'timestamp'],
- 'detail' => ['id'],
- ];
- public function __construct(array $rules = [], array $message = [], array $field = []) {
- $rules = [
- 'id' => 'require',
- ];
- $message = [
- 'id.require' => lang('id is null'),
- ];
- parent::__construct($rules, $message, $field);
- }
- }
|