手机App开发

    /*
     * 登录:输入
     */
    public void login(String user, String pwd,
                      TextHttpResponseHandler responsehandler) {

        String url = JxConf.LOGIN;
        url += "?access_token=";
        url += savedAccessToken();

        RequestParams params = new RequestParams();

        params.put("username", user);
        params.put("password", pwd);

        if (url != null) {
            SslRestfulClient sslclient = new SslRestfulClient(context);
            sslclient.postForm(url, params, responsehandler);
        }
    }

 通过JxConf.LOGIN找到接口:http://localhost:8888/xixxxb1.1.2/mobile/login

如果在PC上用模拟器,在eclipse中调试接口,则需要将IP地址修改为机器的对外地址IPV4:http://192.168.0.103:8889/wbh-adapter-web

这个接口地址存放在:

原文地址:https://www.cnblogs.com/hoge/p/5468920.html