Withdraw.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. *
  5. * User: king/QQ:995265288
  6. * Date: 2018/6/11 上午9:26
  7. * Email: livsyitian@163.com
  8. */
  9. namespace app\frontend\modules\withdraw\models;
  10. class Withdraw extends \app\common\models\Withdraw
  11. {
  12. /**
  13. * 提现的收入唯一标识
  14. *
  15. * @var string
  16. */
  17. public $mark;
  18. /**
  19. * 提现设置
  20. *
  21. * @var array
  22. */
  23. public $withdraw_set;
  24. //todo 自动提现临时使用需要优化
  25. public $is_auto;
  26. /**
  27. * 提现的收入对应设置
  28. *
  29. * @var array
  30. */
  31. public $income_set;
  32. /**
  33. * @return array
  34. */
  35. public function atributeNames()
  36. {
  37. return [
  38. 'withdraw_sn' => "提现单号",
  39. 'uniacid' => "公众号ID",
  40. 'member_id' => "会员ID",
  41. 'type' => "提现类型",
  42. 'type_name' => "",
  43. 'type_id' => "",
  44. 'amounts' => "提现金额",
  45. 'poundage' => "手续费",
  46. 'poundage_rate' => "手续费比例",
  47. 'poundage_type' => "手续费类型",
  48. 'actual_poundage' => "实际手续费",
  49. 'actual_amounts' => "实际提现金额",
  50. 'servicetax' => "劳务税",
  51. 'servicetax_rate' => "劳务税比例",
  52. 'actual_servicetax' => "实际劳务税",
  53. 'pay_way' => "打款方式",
  54. 'manual_type' => "手动打款方式",
  55. 'status' => "提现状态"
  56. ];
  57. }
  58. /**
  59. * @return array
  60. */
  61. public function rules()
  62. {
  63. return [
  64. 'withdraw_sn' => "required",
  65. 'uniacid' => "required",
  66. 'member_id' => "required",
  67. 'type' => "required",
  68. 'type_name' => "",
  69. 'type_id' => "",
  70. 'amounts' => "required",
  71. 'poundage' => "numeric|min:0",
  72. 'poundage_rate' => "numeric|min:0",
  73. 'poundage_type' => "",
  74. 'actual_poundage' => "numeric|min:0",
  75. 'actual_amounts' => "numeric|min:0",
  76. 'servicetax' => "numeric|min:0",
  77. 'servicetax_rate' => "numeric|min:0",
  78. 'actual_servicetax' => "numeric|min:0",
  79. 'pay_way' => "",
  80. 'manual_type' => "required",
  81. 'status' => ""
  82. ];
  83. }
  84. }