api改为云端

This commit is contained in:
胡天 2023-07-25 18:19:49 +08:00
parent 31d8a7f167
commit 5af6591b15
2 changed files with 8 additions and 2 deletions

View File

@ -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";

View File

@ -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",