File tree Expand file tree Collapse file tree 6 files changed +9
-8
lines changed
APIJSONApp/ZBLibrary/src/main/java/zuo/biao/library/util
APIJSONTest/app/src/main/java/apijson/demo/ui
APIJSON-iOS/APIJSON-Swift/APIJSONTest Expand file tree Collapse file tree 6 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -229,11 +229,11 @@ public static boolean noDisturb() {
229
229
/**
230
230
* TODO 改为你的正式服务器地址
231
231
*/
232
- public static final String URL_SERVER_ADDRESS_NORMAL_HTTP = "http://39.108.143.172 :8080/" ;//正式服务器
232
+ public static final String URL_SERVER_ADDRESS_NORMAL_HTTP = "http://apijson.cn :8080/" ;//正式服务器
233
233
/**
234
234
* TODO 改为你的正式服务器地址
235
235
*/
236
- public static final String URL_SERVER_ADDRESS_NORMAL_HTTPS = "http://39.108.143.172 :8080/" ;//正式服务器
236
+ public static final String URL_SERVER_ADDRESS_NORMAL_HTTPS = "http://apijson.cn :8080/" ;//正式服务器
237
237
/**
238
238
* TODO 改为你的测试服务器地址,如果有的话
239
239
*/
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ protected void onCreate(Bundle savedInstanceState) {
126
126
127
127
128
128
etRequestUrl .setText (StringUtil .getString (StringUtil .isNotEmpty (url , true )
129
- ? url : "http://39.108.143.172 :8080/" ));//TODO 把这个ip地址改成你自己服务器的
129
+ ? url : "http://apijson.cn :8080/" ));//TODO 把这个ip地址改成你自己服务器的
130
130
btnRequestRequest .setText (method );
131
131
132
132
error = String .format (getResources ().getString (R .string .request_error ), StringUtil .getTrimedString (btnRequestRequest ));
Original file line number Diff line number Diff line change 15
15
import axios from ' axios'
16
16
// axios.defaults.withCredentials = true
17
17
18
- let url_base = " http://39.108.143.172 :8080"
18
+ let url_base = " http://apijson.cn :8080"
19
19
let url_get = url_base + " /get"
20
20
let url_head = url_base + " /head"
21
21
let url_post_get = url_base + " /post_get"
Original file line number Diff line number Diff line change 3
3
*/
4
4
const TAG_REQUEST_UTIL = 'RequestUtil' ;
5
5
6
- const URL_BASE = "http://39.108.143.172 :8080" ; // 基地址
6
+ const URL_BASE = "http://apijson.cn :8080" ; // 基地址
7
7
const URL_GET = URL_BASE + "/get" ; // 常规获取数据方式
8
8
const URL_HEAD = URL_BASE + "/head" ; // 检查,默认是非空检查,返回数据总数
9
9
const URL_GETS = URL_BASE + "/gets" ; // 通过POST来GET数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
Original file line number Diff line number Diff line change 4
4
5
5
print '\n {APIJSON @ Python}'
6
6
7
- url = 'http://39.108.143.172 :8080/get'
7
+ url = 'http://apijson.cn :8080/get'
8
8
print '\n URL: ' + url
9
9
10
10
data = {
20
20
headers = {'Content-Type' : 'application/json' }
21
21
request = urllib2 .Request (url = url , headers = headers , data = json .dumps (data ))
22
22
response = urllib2 .urlopen (request )
23
- print '\n Response:\n ' + json .dumps (json .loads (response .read ()), indent = 2 )
23
+
24
+ print '\n Response:\n ' + json .dumps (json .loads (response .read ()), indent = 2 )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ViewController: UIViewController {
30
30
*/
31
31
func test( ) {
32
32
33
- let url = " http://39.108.143.172 :8080/get " ;
33
+ let url = " http://apijson.cn :8080/get " ;
34
34
//要发送的请求数据
35
35
let json = [
36
36
//返回数据太长 "[]": [
You can’t perform that action at this time.
0 commit comments