|
@@ -30,7 +30,6 @@ App({
|
|
|
isCreator: false,//是否是创始人
|
|
|
corpMessage: '',//企业套餐信息
|
|
|
usersList: [],//缓存的人员列表
|
|
|
-
|
|
|
},
|
|
|
//获取积分类型
|
|
|
getTypes(callBack) {
|
|
@@ -56,6 +55,7 @@ App({
|
|
|
'Accept': Accept ? Accept : ''
|
|
|
},
|
|
|
data: data,
|
|
|
+ timeout:10000,
|
|
|
dataType: 'json',
|
|
|
success: function (res) {
|
|
|
if (res.data.code == 1) {
|
|
@@ -92,6 +92,7 @@ App({
|
|
|
dd.httpRequest({
|
|
|
url: baseUrl + url,
|
|
|
method: 'GET',
|
|
|
+ timeout:10000,
|
|
|
headers: {
|
|
|
'Content-Type': 'application/x-www-form-urlencoded',
|
|
|
'A-Token': that.globalData.token,
|
|
@@ -141,6 +142,7 @@ App({
|
|
|
'A-Token': that.globalData.token,
|
|
|
'Accept': Accept ? Accept : ''
|
|
|
},
|
|
|
+ timeout:10000,
|
|
|
data: data,
|
|
|
dataType: 'json',
|
|
|
success: function (res) {
|
|
@@ -160,6 +162,15 @@ App({
|
|
|
}
|
|
|
},
|
|
|
fail: function (res) {
|
|
|
+ if(res.error==19||res.error==13){
|
|
|
+ if(url=='api/integral/review/a/entry'||url=='api/integral/point/entry'){
|
|
|
+ let sum=0;
|
|
|
+ if(data){
|
|
|
+ sum=Number(JSON.parse(data.items).length)*Number(JSON.parse(data.members).length);
|
|
|
+ }
|
|
|
+ that.$post('api/e', {sum:sum,message:'钉钉小程序'}).then(res => {})
|
|
|
+ }
|
|
|
+ }
|
|
|
if (res.errorMessage == 'NETWORK ERROR') {
|
|
|
dd.alert({
|
|
|
title: '网络异常',
|