浏览代码

异常处理

彭俊 6 年之前
父节点
当前提交
fc3f1a7a71
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Application/Sports/Controller/MatchList.php

+ 1 - 1
Application/Sports/Controller/MatchList.php

@@ -537,7 +537,7 @@ class  MatchList extends Controller {
                 ->where([$model_match.'.id'=>$matchID])
                 ->first();
 
-            if(empty($matchData)) Render([], '1', lang('Tips','Sports')->get('success'));
+            if(empty($matchData)) Render(null, '1', lang('Tips','Sports')->get('success'));
 
             $matchData->ptime = '';//赛事进行时间
             $matchData->match_score = '';//赛事比分