瀏覽代碼

异常处理

彭俊 6 年之前
父節點
當前提交
c9109ac8e5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Models/SportsNoteList.php

+ 2 - 2
app/Models/SportsNoteList.php

@@ -114,11 +114,11 @@ class SportsNoteList extends BaseModel
                     //匹配球队
                     $teamType_home = commonFunction::checkstr($vv->odds_name,'主队');
                     $teamType_guest = commonFunction::checkstr($vv->odds_name,'客队');
-
+                    $teamName = '';
                     //主队名
                     if($teamType_home == 1){
                         $teamName = $v->home_team;
-                    }
+                    }else
                     //客队名
                     if($teamType_guest == 1){
                         $teamName = $v->guest_team;