Withdraw.php 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace app\common\model\dealer;
  3. use app\common\model\BaseModel;
  4. /**
  5. * 分销商提现明细模型
  6. * Class Apply
  7. * @package app\common\model\dealer
  8. */
  9. class Withdraw extends BaseModel
  10. {
  11. protected $name = 'dealer_withdraw';
  12. /**
  13. * 打款方式
  14. * @var array
  15. */
  16. public $payType = [
  17. 10 => '微信',
  18. 20 => '支付宝',
  19. 30 => '银行卡',
  20. ];
  21. /**
  22. * 申请状态
  23. * @var array
  24. */
  25. public $applyStatus = [
  26. 10 => '待审核',
  27. 20 => '审核通过',
  28. 30 => '驳回',
  29. 40 => '已打款',
  30. ];
  31. /**
  32. * 关联分销商用户表
  33. * @return \think\model\relation\BelongsTo
  34. */
  35. public function user()
  36. {
  37. return $this->belongsTo('User');
  38. }
  39. /**
  40. * 提现详情
  41. * @param $id
  42. * @return Apply|static
  43. * @throws \think\exception\DbException
  44. */
  45. public static function detail($id)
  46. {
  47. return self::get($id);
  48. }
  49. }