添加网站文件

This commit is contained in:
2025-12-22 13:59:40 +08:00
commit 117aaf83d1
19468 changed files with 2111999 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace app\common\model;
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] ?? '';
}
}