作者 曹东东

1

@@ -407,15 +407,12 @@ class Match extends ManystoreBase @@ -407,15 +407,12 @@ class Match extends ManystoreBase
407 $tagInfo = $tagModel->where(['match_id'=>$matchId,'match_type_id' => $matchTypeId])->find(); 407 $tagInfo = $tagModel->where(['match_id'=>$matchId,'match_type_id' => $matchTypeId])->find();
408 //如果没有标签信息 添加默认标签 408 //如果没有标签信息 添加默认标签
409 if(!$tagInfo) { 409 if(!$tagInfo) {
410 - $currentTime = time();  
411 for ($i=1; $i <=2; $i++) 410 for ($i=1; $i <=2; $i++)
412 { 411 {
413 $arr[$i]['tag_name'] = ($i == 1) ? '报名' : '淘汰'; 412 $arr[$i]['tag_name'] = ($i == 1) ? '报名' : '淘汰';
414 $arr[$i]['match_id'] = $matchId; 413 $arr[$i]['match_id'] = $matchId;
415 $arr[$i]['match_type_id'] = $matchTypeId; 414 $arr[$i]['match_type_id'] = $matchTypeId;
416 $arr[$i]['default'] = 1; 415 $arr[$i]['default'] = 1;
417 - //$arr[$i]['createtime'] = $currentTime;  
418 - //$tagModel->insert($arr);  
419 } 416 }
420 $tagModel->insertAll($arr); 417 $tagModel->insertAll($arr);
421 } 418 }
@@ -424,7 +421,6 @@ class Match extends ManystoreBase @@ -424,7 +421,6 @@ class Match extends ManystoreBase
424 421
425 /** 422 /**
426 * 按赛道获取自定义表单组 423 * 按赛道获取自定义表单组
427 - * @param index  
428 */ 424 */
429 public function getFormTypes(){ 425 public function getFormTypes(){
430 $MatchFormSet = new MatchFormSet(); 426 $MatchFormSet = new MatchFormSet();