安徽博创起重服务端程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
608 B

<?php
namespace app\common\model\team;
use think\Model;
/**
* 拼团
* Class Team
* @package app\common\model
*/
class Team extends Model
{
const STATUS_WAIT_SUCCESS = 0;
const STATUS_SUCCESS = 1;
const STATUS_ERROR = 2;
//拼团状态
public static function getStatusDesc($type)
{
$desc = [
self::STATUS_WAIT_SUCCESS => '拼团中',
self::STATUS_SUCCESS => '拼团成功',
self::STATUS_ERROR => '拼团失败',
];
if ($type === true){
return $desc;
}
return $desc[$type] ?? '';
}
}