Skip to content

Commit 8c4f9c3

Browse files
committed
所有ip地址改为域名url
1 parent e1b6657 commit 8c4f9c3

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

APIJSON-Android/APIJSONApp/ZBLibrary/src/main/java/zuo/biao/library/util/SettingUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ public static boolean noDisturb() {
229229
/**
230230
* TODO 改为你的正式服务器地址
231231
*/
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/";//正式服务器
233233
/**
234234
* TODO 改为你的正式服务器地址
235235
*/
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/";//正式服务器
237237
/**
238238
* TODO 改为你的测试服务器地址,如果有的话
239239
*/

APIJSON-Android/APIJSONTest/app/src/main/java/apijson/demo/ui/RequestActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected void onCreate(Bundle savedInstanceState) {
126126

127127

128128
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地址改成你自己服务器的
130130
btnRequestRequest.setText(method);
131131

132132
error = String.format(getResources().getString(R.string.request_error), StringUtil.getTrimedString(btnRequestRequest));

APIJSON-JavaScript/APIJSON-JS-Vue/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import axios from 'axios'
1616
// axios.defaults.withCredentials = true
1717
18-
let url_base = "http://39.108.143.172:8080"
18+
let url_base = "http://apijson.cn:8080"
1919
let url_get = url_base + "/get"
2020
let url_head = url_base + "/head"
2121
let url_post_get = url_base + "/post_get"

APIJSON-JavaScript/APIJSON-JS/RequestUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
const TAG_REQUEST_UTIL = 'RequestUtil';
55

6-
const URL_BASE = "http://39.108.143.172:8080"; // 基地址
6+
const URL_BASE = "http://apijson.cn:8080"; // 基地址
77
const URL_GET = URL_BASE + "/get"; // 常规获取数据方式
88
const URL_HEAD = URL_BASE + "/head"; // 检查,默认是非空检查,返回数据总数
99
const URL_GETS = URL_BASE + "/gets"; // 通过POST来GET数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求

APIJSON-Python/test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
print '\n{APIJSON @ Python}'
66

7-
url = 'http://39.108.143.172:8080/get'
7+
url = 'http://apijson.cn:8080/get'
88
print '\nURL: ' + url
99

1010
data = {
@@ -20,4 +20,5 @@
2020
headers = {'Content-Type': 'application/json'}
2121
request = urllib2.Request(url=url, headers=headers, data=json.dumps(data))
2222
response = urllib2.urlopen(request)
23-
print '\nResponse:\n' + json.dumps(json.loads(response.read()), indent=2)
23+
24+
print '\nResponse:\n' + json.dumps(json.loads(response.read()), indent=2)

APIJSON-iOS/APIJSON-Swift/APIJSONTest/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ViewController: UIViewController {
3030
*/
3131
func test() {
3232

33-
let url = "http://39.108.143.172:8080/get";
33+
let url = "http://apijson.cn:8080/get";
3434
//要发送的请求数据
3535
let json = [
3636
//返回数据太长 "[]": [

0 commit comments

Comments
 (0)