ReplyDefaultForm.php 716 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace addons\Wechat\merchant\forms;
  3. use yii\base\Model;
  4. /**
  5. * Class ReplyDefaultForm
  6. * @package addons\Wechat\merchant\forms
  7. */
  8. class ReplyDefaultForm extends Model
  9. {
  10. public $follow_content;
  11. public $default_content;
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function rules()
  16. {
  17. return [
  18. [['follow_content', 'default_content'], 'string', 'max' => 200],
  19. [['follow_content', 'default_content'], 'trim'],
  20. ];
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function attributeLabels()
  26. {
  27. return [
  28. 'follow_content' => '关注回复关键字',
  29. 'default_content' => '默认回复关键字',
  30. ];
  31. }
  32. }
粤ICP备19079148号