| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\common\model\dealer;
- use app\common\model\BaseModel;
- /**
- * 分销商提现明细模型
- * Class Apply
- * @package app\common\model\dealer
- */
- class Withdraw extends BaseModel
- {
- protected $name = 'dealer_withdraw';
- /**
- * 打款方式
- * @var array
- */
- public $payType = [
- 10 => '微信',
- 20 => '支付宝',
- 30 => '银行卡',
- ];
- /**
- * 申请状态
- * @var array
- */
- public $applyStatus = [
- 10 => '待审核',
- 20 => '审核通过',
- 30 => '驳回',
- 40 => '已打款',
- ];
- /**
- * 关联分销商用户表
- * @return \think\model\relation\BelongsTo
- */
- public function user()
- {
- return $this->belongsTo('User');
- }
- /**
- * 提现详情
- * @param $id
- * @return Apply|static
- * @throws \think\exception\DbException
- */
- public static function detail($id)
- {
- return self::get($id);
- }
- }
|