FeiE.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace common\models\extend\printer;
  3. /**
  4. * Class FeiE
  5. * @package common\models\hardware
  6. * @author jianyan74 <751393839@qq.com>
  7. */
  8. class FeiE extends \yii\base\Model
  9. {
  10. public $ukey;
  11. public $user;
  12. public $app_id;
  13. public $sn;
  14. public $print_num = 1;
  15. public function rules()
  16. {
  17. return [
  18. [['ukey', 'user', 'sn', 'print_num'], 'required'],
  19. [['sn'], 'integer'],
  20. [['print_num'], 'integer', 'min' => 1, 'max' => 9],
  21. ];
  22. }
  23. public function attributeLabels()
  24. {
  25. return [
  26. 'user' => 'USER',
  27. 'ukey' => ' UKEY',
  28. 'sn' => 'sn',
  29. 'print_num' => '打印联数'
  30. ];
  31. }
  32. /**
  33. * @return array|string[]
  34. */
  35. public function attributeHints()
  36. {
  37. return [
  38. 'user' => ' 飞鹅后台:个人中心->用户信息获取。http://feieyun.com/open/index.html',
  39. 'ukey' => '飞鹅后台:个人中心->用户信息获取。http://feieyun.com/open/index.html',
  40. 'sn' => '打印机编号',
  41. 'print_num' => '同一个记录,打印的数量,区间范围为 1-9'
  42. ];
  43. }
  44. }
粤ICP备19079148号