We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception 'yii\base\UnknownPropertyException' with message 'Getting unknown property: abei2017\wx\mini\template\Template::accessToken'
in /home/www-data/workspace/kangyi/php/shopping/vendor/yiisoft/yii2/base/Component.php:154
当前版本 1.3.4 ` class Template extends Driver {
const API_SEND_TMPL = 'https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token='; /** * 发送模板消息 * * @param $toUser * @param $templateId * @param $formId * @param $data * @param array $extra */ public function send($toUser,$templateId,$formId,$data,$extra = []){ $params = array_merge([ 'touser'=>$toUser, 'template_id'=>$templateId, 'form_id'=>$formId, 'data'=>$data, ],$extra); $response = $this->post(self::API_SEND_TMPL.$this->accessToken->getToken(),$params)->setFormat(Client::FORMAT_JSON)->send(); return $response->getContent(); }
} `
accesstoken未定义
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Exception 'yii\base\UnknownPropertyException' with message 'Getting unknown property: abei2017\wx\mini\template\Template::accessToken'
in /home/www-data/workspace/kangyi/php/shopping/vendor/yiisoft/yii2/base/Component.php:154
当前版本 1.3.4
`
class Template extends Driver {
}
`
accesstoken未定义
The text was updated successfully, but these errors were encountered: