Hello.php 483 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2017 https://www.sapixx.com All rights reserved.
  4. * @license Licensed (http://www.apache.org/licenses/LICENSE-2.0).
  5. * @author pillar<ltmn@qq.com>
  6. * 演示验证
  7. */
  8. namespace app\shop\validate;
  9. use think\Validate;
  10. class Adwords extends Validate{
  11. protected $rule = [
  12. 'id' => 'require',
  13. ];
  14. protected $message = [
  15. 'id' => 'ID不存在',
  16. ];
  17. protected $scene = [
  18. 'edit' => ['id'],
  19. ];
  20. }