Commit cb8e7184 authored by hangjun83's avatar hangjun83

优化

parent 6b13783e
...@@ -39,8 +39,8 @@ class ThirdApiPlatformRepositoryEloquent extends BaseRepository implements Third ...@@ -39,8 +39,8 @@ class ThirdApiPlatformRepositoryEloquent extends BaseRepository implements Third
{ {
$platformInfo = $this->findWhere(['platform_name' => $platformName]); $platformInfo = $this->findWhere(['platform_name' => $platformName]);
if($platformInfo){ if($platformInfo){
$platformInfo = $platformInfo[0]; $platformInfo = $platformInfo->toArray();
return $platformInfo->toArray(); 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