api改为云端
This commit is contained in:
parent
31d8a7f167
commit
5af6591b15
|
@ -1,5 +1,8 @@
|
|||
/// Api地址
|
||||
const String ServerApiUrl = "http://172.31.163.87:4523/m1/2998542-0-default";
|
||||
const String ServerApiUrl = "https://mock.apifox.cn/m1/2998542-0-default";
|
||||
|
||||
const String ServerApiToken = "GWbEC4Bin3PcuHNC0Sq8T";
|
||||
// const String ServerApiUrl = "http://172.31.163.87:4523/m1/2998542-0-default";
|
||||
// const String ServerApiUrl = "http://192.168.1.5:4523/m1/2998542-0-default";
|
||||
|
||||
const CryptoSalt = "E1pWsyfiy@R@X#qn17!StJNdZK1fFF8iV6ffN!goZkqt#JxO";
|
|
@ -42,7 +42,10 @@ class HttpUtil {
|
|||
// 响应流上前后两次接受到数据的间隔,单位为毫秒。
|
||||
receiveTimeout: Duration(seconds: 5),
|
||||
// Http请求头.
|
||||
headers: {},
|
||||
headers: {
|
||||
// 云端Mock鉴权使用
|
||||
"apifoxToken": ServerApiToken,
|
||||
},
|
||||
|
||||
/// 请求的Content-Type,默认值是"application/json; charset=utf-8".
|
||||
/// 如果您想以"application/x-www-form-urlencoded"格式编码请求数据,
|
||||
|
|
Loading…
Reference in New Issue