作者 曹东东

1

... ... @@ -407,15 +407,12 @@ class Match extends ManystoreBase
$tagInfo = $tagModel->where(['match_id'=>$matchId,'match_type_id' => $matchTypeId])->find();
//如果没有标签信息 添加默认标签
if(!$tagInfo) {
$currentTime = time();
for ($i=1; $i <=2; $i++)
{
$arr[$i]['tag_name'] = ($i == 1) ? '报名' : '淘汰';
$arr[$i]['match_id'] = $matchId;
$arr[$i]['match_type_id'] = $matchTypeId;
$arr[$i]['default'] = 1;
//$arr[$i]['createtime'] = $currentTime;
//$tagModel->insert($arr);
}
$tagModel->insertAll($arr);
}
... ... @@ -424,7 +421,6 @@ class Match extends ManystoreBase
/**
* 按赛道获取自定义表单组
* @param index
*/
public function getFormTypes(){
$MatchFormSet = new MatchFormSet();
... ...