public function test()
{
        //获取token
        $wxtoken = $this->jssdks->getToken();
        //拼接URL
        $url = 'https://api.weixin.qq.com/cgi-bin/message/template/send?access_token='.$wxtoken;
        //发送需要发送的模板信息内容
        $params = json_encode(array(
            'touser' => "openid",//接收者的OpenId
            'template_id' => '',//模板ID,可去微信公众号后台查看
            "url" => "http://".STYLE_DOMAIN,//用户接收到信息,点击后挑战的地址
            'topcolor' => "#FF0000",
            'data' => array(
                //以下内容可参考微信公众号后台填写
                'first' => array(
                    "value" => "业务到期提示",
                    "color" => "#173177"
                ),
                'type' => array(
                    "value" => "到期提示",
                    "color" => "#173177"
                ),
                'date' => array(
                    "value" => date('Y-m-d'),
                    "color" => "#173177"
                ),
                'remark' => array(
                    "value" => '本业务将在月底自动取消。如需续用,请您在到期前点击链接,根据指引办理业务。感谢您的体验!',
                    "color" => "#173177"
                ),
            )
            )
        );
        //调用封装好的Curl发送数据。
        $result = $this->getapi->get_json_decode($params,$url);
 }