Commit 2fe61eda authored by hangjun83's avatar hangjun83

优化

parent c68775ff
...@@ -40,7 +40,9 @@ class ThirdApiPlatformRepositoryEloquent extends BaseRepository implements Third ...@@ -40,7 +40,9 @@ class ThirdApiPlatformRepositoryEloquent extends BaseRepository implements Third
$platformInfo = $this->findWhere(['platform_name' => $platformName]); $platformInfo = $this->findWhere(['platform_name' => $platformName]);
if($platformInfo){ if($platformInfo){
$platformInfo = $platformInfo->toArray(); $platformInfo = $platformInfo->toArray();
return $platformInfo[0]; if($platformInfo){
return $platformInfo[0];
}
} }
return null; return null;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment