diff --git a/src/MiniProgram/SubscribeMsg.php b/src/MiniProgram/SubscribeMsg.php index 27cfc46..27a02f0 100644 --- a/src/MiniProgram/SubscribeMsg.php +++ b/src/MiniProgram/SubscribeMsg.php @@ -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 ]); @@ -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 ]); @@ -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 ]); @@ -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 ]); @@ -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 ]); @@ -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 ]); @@ -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 ]);