Files
duolamaojiazhen/application/common/model/Withdraw.php
2025-12-22 13:59:40 +08:00

71 lines
2.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// +----------------------------------------------------------------------
// | likeshop100%开源免费商用商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | 开源版本可自由商用可去除界面版权logo
// | 商业版本务必购买商业授权,以免引起法律纠纷
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop团队 版权所有 拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshopTeam
// +----------------------------------------------------------------------
namespace app\common\model;
use think\Model;
class Withdraw extends Model
{
//提现类型
const TYPE_BALANCE = 1; // 提现到钱包余额
const TYPE_WECHAT_CHANGE = 2; // 提现到微信零钱
const TYPE_WECHAT_CODE = 3; // 提现到微信收款码
const TYPE_ALI_CODE = 4; // 提现到支付宝收款码
const TYPE_BANK = 5; // 提现到银行卡
//提现状态
const STATUS_WAIT = 1; // 待提现
const STATUS_ING = 2; // 提现中
const STATUS_SUCCESS = 3; // 提现成功
const STATUS_FAIL = 4; //提现失败
//提现状态
public static function getStatusDesc($status = true)
{
$desc = [
self::STATUS_WAIT => '待提现',
self::STATUS_ING => '提现中',
self::STATUS_SUCCESS => '提现成功',
self::STATUS_FAIL => '提现失败'
];
if ($status === true) {
return $desc;
}
return $desc[$status] ?? '';
}
//提现类型
public static function getTypeDesc($status = true)
{
$desc = [
self::TYPE_BALANCE => '钱包余额',
self::TYPE_WECHAT_CHANGE => '微信零钱',
self::TYPE_BANK => '银行卡',
self::TYPE_WECHAT_CODE => '微信收款码',
self::TYPE_ALI_CODE => '支付宝收款码',
];
if ($status === true) {
return $desc;
}
return $desc[$status] ?? '';
}
}