This commit is contained in:
2020-11-14 02:15:02 +08:00
parent 30b5ea5d3d
commit 17da6239f3
+3 -2
View File
@@ -16,8 +16,8 @@ class Message extends SmallProgram
const MINIPROGRAMPAGE = 6; const MINIPROGRAMPAGE = 6;
const WXCARD = 7; const WXCARD = 7;
private $openid = ''; private string $openid = '';
private $msgData = []; private array $msgData = [];
/** /**
@@ -302,6 +302,7 @@ class Message extends SmallProgram
$this->request->setMethod(HttpClient::POST); $this->request->setMethod(HttpClient::POST);
$this->request->setErrorField('errcode'); $this->request->setErrorField('errcode');
$this->request->setErrorMsgField('errmsg'); $this->request->setErrorMsgField('errmsg');
$this->request->setHost('api.weixin.qq.com');
/** @var Result $body */ /** @var Result $body */
$body = $this->request->post($url, $data); $body = $this->request->post($url, $data);