Update MichatService.php

This commit is contained in:
Anyon 2019-08-01 14:34:50 +08:00
parent 73540d3ada
commit b4124fd8f7

View File

@ -71,9 +71,7 @@ class MichatService
{ {
$result = json_decode(Http::request('post', self::URI . $api, [ $result = json_decode(Http::request('post', self::URI . $api, [
'data' => json_encode($data, JSON_UNESCAPED_UNICODE), 'data' => json_encode($data, JSON_UNESCAPED_UNICODE),
'headers' => [ 'headers' => ['Content-Type: application/json'],
'Content-Type: application/json',
],
]), true); ]), true);
if (isset($result['code']) && intval($result['code']) === 200) { if (isset($result['code']) && intval($result['code']) === 200) {
return $result['data']; return $result['data'];