Browse Source

异常处理

彭俊 6 năm trước cách đây
mục cha
commit
fc3f1a7a71
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 = '';//赛事比分