|
@@ -45,18 +45,26 @@ const http = (url = '', date = {}, type = 'POST', header = {
|
|
|
}, 200); */
|
|
|
let [error, res] = response;
|
|
|
|
|
|
-
|
|
|
- if(res.data.code==1){
|
|
|
- uni.showToast({
|
|
|
- title: res.data.msg,
|
|
|
- icon:'none',
|
|
|
- duration: 3000,
|
|
|
- });
|
|
|
- // uni.clearStorageSync()
|
|
|
+ if(res.data.number == 200 || res.data.number == 5212){
|
|
|
|
|
|
- }else if(res.data.code==409){
|
|
|
- // getToken(url,date,type,header)
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.msg,
|
|
|
+ icon:'none',
|
|
|
+ duration: 3000,
|
|
|
+ });
|
|
|
}
|
|
|
+ // if(res.data.code==1){
|
|
|
+ // uni.showToast({
|
|
|
+ // title: res.data.msg,
|
|
|
+ // icon:'none',
|
|
|
+ // duration: 3000,
|
|
|
+ // });
|
|
|
+ // // uni.clearStorageSync()
|
|
|
+
|
|
|
+ // }else if(res.data.code==409){
|
|
|
+ // // getToken(url,date,type,header)
|
|
|
+ // }
|
|
|
resolve(res.data);
|
|
|
}).catch(error => {
|
|
|
let [err, res] = error;
|