config->item('weixin_uah'); $config = [ 'app_id' => $conf['AppId'], 'secret' => $conf['AppSecert'], 'token' => $conf['Token'], 'aes_key' => $conf['EncodingAESKey'], 'response_type' => 'array', ]; $app = new OfficialAccount($config); $app->notice->send([ 'touser' => $toUser, 'template_id' => $template_id, 'url' => $url, 'data' => $msg ]); } }