MerchantIntentionValidate.php 493 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\validate\api;
  3. use think\Validate;
  4. class MerchantIntentionValidate extends Validate
  5. {
  6. protected $failException = true;
  7. protected $rule = [
  8. 'phone|手机号' => 'require|mobile',
  9. 'name|姓名' => 'require',
  10. 'mer_name|姓名' => 'require|max:32',
  11. 'merchant_category_id|商户分类' => 'require',
  12. 'mer_type_id|店铺类型' => 'integer',
  13. 'code|验证码' => 'require',
  14. 'images|资质' => 'array',
  15. ];
  16. }