Storedeposit.php 730 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. *
  6. *
  7. * ----------------------------------------------------------------------------
  8. *
  9. * 验证器
  10. */
  11. class Storedeposit extends Validate
  12. {
  13. protected $rule = [
  14. 'store_id' => 'require|number',
  15. 'amount' => 'require',
  16. 'operatetype' => 'require',
  17. ];
  18. protected $message = [
  19. 'store_id.require' => '请输入店主用户名',
  20. 'store_id.number' => '店主信息错误',
  21. 'amount.require' => '请添加金额',
  22. 'operatetype.require' => '请输入增减类型',
  23. ];
  24. protected $scene = [
  25. 'adjust' => ['store_id', 'amount', 'operatetype'],
  26. ];
  27. }