截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AlipayValidate.php 666B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\shop\validate;
  3. use app\common\basics\Validate;
  4. class AlipayValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'id' => 'require|number',
  8. 'account' => 'require',
  9. 'username' => 'require',
  10. ];
  11. protected $message = [
  12. 'id.require' => '缺少ID字段',
  13. 'id.number' => 'ID必须为数字',
  14. 'account.require' => '请填写支付宝账号',
  15. 'username.require' => '请填写支付宝姓名',
  16. ];
  17. protected $scene = [
  18. 'id' => [ 'id' ],
  19. 'add' => [ 'account', 'username' ],
  20. 'edit' => [ 'id', 'account', 'username' ],
  21. ];
  22. }