GiftValidate.php 743 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * GiftValidate.php UTF-8
  4. * 礼包验证类
  5. *
  6. * @date : 2017/11/18 16:16
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : wuyonghong <wyh@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace api\wapapp\validate;
  13. class GiftValidate extends BaseValidate {
  14. protected $scene
  15. = [
  16. 'list' => [],
  17. 'detail' => ['gift_id'],
  18. ];
  19. public function __construct(array $rules = [], array $message = [], array $field = []) {
  20. $rules = [
  21. 'gift_id' => 'require',
  22. ];
  23. $message = [
  24. 'gift_id.require' => lang('gift id is null'),
  25. ];
  26. parent::__construct($rules, $message, $field);
  27. }
  28. }