Withdraw.php 629 B

123456789101112131415161718192021222324252627282930313233343536
  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. * @return \think\model\relation\BelongsTo
  15. */
  16. public function user()
  17. {
  18. return $this->belongsTo('User');
  19. }
  20. /**
  21. * 提现详情
  22. * @param $id
  23. * @return Apply|static
  24. * @throws \think\exception\DbException
  25. */
  26. public static function detail($id)
  27. {
  28. return self::get($id);
  29. }
  30. }