This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/common/enum/order/PayStatus.php
2020-04-25 22:20:29 +08:00

38 lines
692 B
PHP

<?php
namespace app\common\enum\order;
use app\common\enum\EnumBasics;
/**
* 订单支付状态枚举类
* Class PayStatus
* @package app\common\enum\recharge\order
*/
class PayStatus extends EnumBasics
{
// 待支付
const PENDING = 10;
// 支付成功
const SUCCESS = 20;
/**
* 获取枚举数据
* @return array
*/
public static function data()
{
return [
self::PENDING => [
'name' => '待付款',
'value' => self::PENDING,
],
self::SUCCESS => [
'name' => '已付款',
'value' => self::SUCCESS,
],
];
}
}