Skip to content

Commit

Permalink
Merge pull request #59 from LuffyQAQ/master
Browse files Browse the repository at this point in the history
🐛  fix SubscribeMsg Class 中错误的 call
  • Loading branch information
RunsTp authored Apr 16, 2020
2 parents 035e98a + 1a4c7d1 commit ce0745d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/MiniProgram/SubscribeMsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SubscribeMsg extends MinProgramBase
*/
public function getCategory()
{
$token = $this->miniProgram()->accessToken()->getToken();
$token = $this->getMiniProgram()->accessToken()->getToken();
$url = ApiUrl::generateURL(ApiUrl::GET_CATEGORY, [
'ACCESS_TOKEN' => $token
]);
Expand All @@ -45,7 +45,7 @@ public function getCategory()
*/
public function getPubTemplateTitleList(array $data)
{
$token = $this->miniProgram()->accessToken()->getToken();
$token = $this->getMiniProgram()->accessToken()->getToken();
$url = ApiUrl::generateURL(ApiUrl::GET_PUB_TEMPLATE_TITLES, [
'ACCESS_TOKEN' => $token
]);
Expand All @@ -67,7 +67,7 @@ public function getPubTemplateTitleList(array $data)
*/
public function getPubTemplateKeyWordsById(array $data)
{
$token = $this->miniProgram()->accessToken()->getToken();
$token = $this->getMiniProgram()->accessToken()->getToken();
$url = ApiUrl::generateURL(ApiUrl::GET_PUB_TEMPLATE_KEYWORDS, [
'ACCESS_TOKEN' => $token
]);
Expand All @@ -88,7 +88,7 @@ public function getPubTemplateKeyWordsById(array $data)
*/
public function deleteTemplate(string $priTmplId)
{
$token = $this->miniProgram()->accessToken()->getToken();
$token = $this->getMiniProgram()->accessToken()->getToken();
$url = ApiUrl::generateURL(ApiUrl::DEL_TEMPLATE, [
'ACCESS_TOKEN' => $token
]);
Expand All @@ -109,7 +109,7 @@ public function deleteTemplate(string $priTmplId)
*/
public function addTemplate(array $data)
{
$token = $this->miniProgram()->accessToken()->getToken();
$token = $this->getMiniProgram()->accessToken()->getToken();
$url = ApiUrl::generateURL(ApiUrl::ADD_TEMPLATE, [
'ACCESS_TOKEN' => $token
]);
Expand All @@ -130,7 +130,7 @@ public function addTemplate(array $data)
*/
public function getTemplateList()
{
$token = $this->miniProgram()->accessToken()->getToken();
$token = $this->getMiniProgram()->accessToken()->getToken();
$url = ApiUrl::generateURL(ApiUrl::GET_TEMPLATE, [
'ACCESS_TOKEN' => $token
]);
Expand All @@ -152,7 +152,7 @@ public function getTemplateList()
*/
public function sendMsg(array $data)
{
$token = $this->miniProgram()->accessToken()->getToken();
$token = $this->getMiniProgram()->accessToken()->getToken();
$url = ApiUrl::generateURL(ApiUrl::SUBSCRIBE_SEND, [
'ACCESS_TOKEN' => $token
]);
Expand Down

0 comments on commit ce0745d

Please sign in to comment.