122 lines
2.5 KiB
PHP
Executable File
122 lines
2.5 KiB
PHP
Executable File
<?php
|
|
namespace app\common\model\withdraw;
|
|
use app\common\model\BaseModel;
|
|
use app\common\service\FileService;
|
|
|
|
/**
|
|
* 提现配置表
|
|
* Class WithdrawApply
|
|
* @package app\common\model\withdraw
|
|
*/
|
|
class WithdrawApply extends BaseModel
|
|
{
|
|
|
|
protected $json = ['withdraw_config_snap'];
|
|
// 设置JSON数据返回数组
|
|
protected $jsonAssoc = true;
|
|
|
|
/**
|
|
* @notes 审核状态
|
|
* @param $value
|
|
* @param $data
|
|
* @return string
|
|
* @author cjhao
|
|
* @date 2024/9/27 01:44
|
|
*/
|
|
public function getStatusDescAttr($value,$data)
|
|
{
|
|
$status = [
|
|
1=>'待审核',
|
|
2=>'审核成功',
|
|
3=>'审核失败',
|
|
4=>'提现中',
|
|
5=>'转账成功',
|
|
6=>'转账失败',
|
|
];
|
|
return $status[$data['status']] ?? '';
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 获取提现类型
|
|
* @param $value
|
|
* @param $data
|
|
* @return string
|
|
* @author cjhao
|
|
* @date 2024/11/20 21:59
|
|
*/
|
|
public function getTypeDesc($value,$data)
|
|
{
|
|
$type = [
|
|
1 => '微信',
|
|
2 => '支付宝',
|
|
3 => '银行卡',
|
|
];
|
|
return $type[$data['type']] ?? '';
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
* @notes 提现类型
|
|
* @param $value
|
|
* @param $data
|
|
* @return string
|
|
* @author cjhao
|
|
* @date 2024/10/31 15:54
|
|
*/
|
|
public function getApplyTypeDescAttr($value,$data)
|
|
{
|
|
$desc = [
|
|
1 => '技师佣金提现',
|
|
2 => '技师保证金提现',
|
|
];
|
|
if(2 == $data['source']){
|
|
$desc = [
|
|
1 => '店铺佣金提现',
|
|
2 => '店铺保证金提现',
|
|
];
|
|
}
|
|
return $desc[$data['apply_type']] ?? '';
|
|
|
|
}
|
|
|
|
public function getTypeDescAttr($value,$data)
|
|
{
|
|
$desc = [
|
|
1 => '微信',
|
|
2 => '支付宝',
|
|
3 => '银行卡',
|
|
];
|
|
return $desc[$data['type']] ?? '';
|
|
}
|
|
|
|
/**
|
|
* @notes 补全图片路径
|
|
* @param $value
|
|
* @param $data
|
|
* @return string
|
|
* @author ljj
|
|
* @date 2022/2/17 6:11 下午
|
|
*/
|
|
public function getTransferProofAttr($value,$data)
|
|
{
|
|
return FileService::getFileUrl($value);
|
|
}
|
|
|
|
/**
|
|
* @notes 去掉图片路径
|
|
* @param $value
|
|
* @param $data
|
|
* @return string
|
|
* @author ljj
|
|
* @date 2022/2/17 6:11 下午
|
|
*/
|
|
public function setTransferProofAttr($value,$data)
|
|
{
|
|
return FileService::setFileUrl($value);
|
|
}
|
|
|
|
|
|
|
|
} |