3
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user