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() {
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 */
Original file line number Diff line number Diff 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 ));
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 33 */
44const TAG_REQUEST_UTIL = 'RequestUtil' ;
55
6- const URL_BASE = "http://39.108.143.172 :8080" ; // 基地址
6+ const URL_BASE = "http://apijson.cn :8080" ; // 基地址
77const URL_GET = URL_BASE + "/get" ; // 常规获取数据方式
88const URL_HEAD = URL_BASE + "/head" ; // 检查,默认是非空检查,返回数据总数
99const URL_GETS = URL_BASE + "/gets" ; // 通过POST来GET数据,不显示请求内容和返回结果,一般用于对安全要求比较高的请求
Original file line number Diff line number Diff line change 44
55print '\n {APIJSON @ Python}'
66
7- url = 'http://39.108.143.172 :8080/get'
7+ url = 'http://apijson.cn :8080/get'
88print '\n URL: ' + url
99
1010data = {
2020headers = {'Content-Type' : 'application/json' }
2121request = urllib2 .Request (url = url , headers = headers , data = json .dumps (data ))
2222response = 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 {
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 //返回数据太长 "[]": [
You can’t perform that action at this time.
0 commit comments