实现后的效果
case 5:
{
try{
var res = await DioManager().friend_getSelectionTopic(params: {
});
print('成功msg-----------'+res.msg);
print('成功code-----------'+res.code);
print('成功code-----------'+res.data.toString());
}
catch(err){
print('最外部捕获msg-----------'+err.msg);
print('最外部捕获code-----------'+err.code);
print('最外部捕获data-----------'+err.data.toString());
}
}
break;
logo如下::::::
I/flutter (29319): [START----发起get请求---->:https://t-ebankhome.reganfund.com/appapi/apib/v3/friends/getSelectionTopic
I/flutter (29319): [GET----请求参数--->:null
I/flutter (29319): ======= json反序列化后的dynamic对象 ======== : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiMzQiLCIxIl0sImV4cCI6MTU5ODQzMjY3MSwiaWF0IjoxNTk3ODI3ODcxfQ.lLr7xG443XBU0AES2P2CFAEB3Rixm11_7d8U6Om33ek
I/flutter (29319): read is ok ,,,,,
I/flutter (29319): [END_SUCCESS_CODE_OK=====获取GET返回结果=====>:{
"code":"000","msg":"成功","datas":{
"total":2,"data":[{
"friendsClassifyId":41,"fileUrl":"https://t-ebankhome.reganfund.com/appapi/upload/data/ad/20200615131741297.png","classifyName":"基金"},{
"friendsClassifyId":40,"fileUrl":"https://t-ebankhome.reganfund.com/appapi/upload/data/ad/20200615131821557.png","classifyName":"保险"}]}}
I/flutter (29319): 成功msg-----------成功
I/flutter (29319): 成功code-----------000
I/flutter (29319): 成功code-----------{
total: 2, data: [{
friendsClassifyId: 41, fileUrl: https://t-ebankhome.reganfund.com/appapi/upload/data/ad/20200615131741297.png, classifyName: 基金}, {
friendsClassifyId: 40, fileUrl: https://t-ebankhome.reganfund.com/appapi/upload/data/ad/20200615131821557.png, classifyName: 保险}]}
乱改一下URL, 看看失败效果
I/flutter (29319): [START----发起get请求---->:https://t-ebankhome.reganfund.com/appapi/apib/v3/friends/getSelectionTopicss
I/flutter (