private void statusNotify() {
        log.info("开启状态通知");

        String url = String.format("%s/webwxstatusnotify?lang=zh_CN&pass_ticket=%s",
                bot.session().getUrl(), bot.session().getPassTicket());

        this.client.send(new JsonRequest(url).post().jsonBody()
                .add("BaseRequest", bot.session().getBaseRequest())
                .add("Code", 3)
                .add("FromUserName", bot.session().getUserName())
                .add("ToUserName", bot.session().getUserName())
                .add("ClientMsgId", System.currentTimeMillis() / 1000));
    }
private void statusNotify() {
        log.info("开启状态通知");

        String url = String.format("%s/webwxstatusnotify?lang=zh_CN&pass_ticket=%s",
                bot.session().getUrl(), bot.session().getPassTicket());

        this.client.send(new JsonRequest(url).post().jsonBody()
                .add("BaseRequest", bot.session().getBaseRequest())
                .add("Code", 3)
                .add("FromUserName", bot.session().getUserName())
                .add("ToUserName", bot.session().getUserName())
                .add("ClientMsgId", System.currentTimeMillis() / 1000));
    }
private void statusNotify ( ) { log . info ( "开启状态通知"); String url = String . format ( "%s/webwxstatusnotify?lang=zh_CN&pass_ticket=%s" , bot . session ( ) . getUrl ( ) , bot . session ( ) . getPassTicket ( ) ) ; this . client . send ( new JsonRequest ( url ) . post ( ) . jsonBody ( ) . add ( "BaseRequest" , bot . session ( ) . getBaseRequest ( ) ) . add ( "Code" , 3 ) . add ( "FromUserName" , bot . session ( ) . getUserName ( ) ) . add ( "ToUserName" , bot . session ( ) . getUserName ( ) ) . add ( "ClientMsgId" , System . currentTimeMillis ( ) / 1000 ) ) ; }
开启状态通知
开启状态通知