Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix: 修复错误的返回参数
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonleex committed Jan 5, 2018
1 parent c6d6280 commit 4dd3193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function index(ImServeRepsitory $repository, GoldType $goldType, Reposito
'api' => url('api/v2'),
'apiv1' => url('api/v1'),
'goldName' => $gold ? $gold->name : '金币',
'webSocktUrl' => config('im.open') === true ? $repository->get() : '', // 如果 im 开启,则返回地址,否则返回空。
'webSocktUrl' => config('im.open') === true ? $repository->get()['serve'] : '', // 如果 im 开启,则返回地址,否则返回空。
]);
}
}

0 comments on commit 4dd3193

Please sign in to comment.