Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
medz authored and StyleCIBot committed Nov 14, 2018
1 parent da9a307 commit db22494
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/Admin/Controllers/Setting/Easemob.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

namespace Zhiyi\Plus\Admin\Controllers\Setting;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use function Zhiyi\Plus\setting;
use Illuminate\Http\JsonResponse;
Expand Down
2 changes: 1 addition & 1 deletion app/Admin/Requests/SetEasemob.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function rules(): array
public function messages(): array
{
return [
'appKey.regex' => ':attribute格式错误,请填入使用 `#` 符号分割的正确值'
'appKey.regex' => ':attribute格式错误,请填入使用 `#` 符号分割的正确值',
];
}

Expand Down
4 changes: 2 additions & 2 deletions app/EaseMobIM/Controllers/EaseMobController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ protected function getConfig($callback)
$this->client_secret = $settings['clientSecret'];
$this->register_type = $settings['registerType'];

if (! $this->open || ! $this->client_id || ! $this->client_secret || !$settings['appKey']) {
if (! $this->open || ! $this->client_id || ! $this->client_secret || ! $settings['appKey']) {
return response()->json([
'message' => ['环信未开启或者配置信息不全'],
])->setStatusCode(500);
}

// 应用标识
$appKey = explode('#', $settings['appKey']);
$this->org_name = $appKey[0] ?? '';
Expand Down

0 comments on commit db22494

Please sign in to comment.