mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update MichatService.php
This commit is contained in:
parent
73540d3ada
commit
b4124fd8f7
@ -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'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user