|
@@ -744,6 +744,15 @@ const getPayAmount = async (amountValue) => {
|
|
|
|
|
|
const saveDiscordGuildInfo = () => {
|
|
const saveDiscordGuildInfo = () => {
|
|
let {guildId, inviteCode, inviteUrl} = discordInviteInfo.value;
|
|
let {guildId, inviteCode, inviteUrl} = discordInviteInfo.value;
|
|
|
|
+ //保存服务器信息
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.publisherDialog,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.saveDiscordGuildData
|
|
|
|
+ }, {
|
|
|
|
+ reportData: discordInviteInfo.value
|
|
|
|
+ });
|
|
|
|
+
|
|
if(guildId && inviteCode && inviteUrl) {
|
|
if(guildId && inviteCode && inviteUrl) {
|
|
saveInviteGuildInfo({
|
|
saveInviteGuildInfo({
|
|
params: {
|
|
params: {
|
|
@@ -1407,9 +1416,25 @@ const getDiscordInviteInfo = ({inviteUrl, getDuildId}, cb) => {
|
|
if(resData.data.guildId) {
|
|
if(resData.data.guildId) {
|
|
cb && cb(resData);
|
|
cb && cb(resData);
|
|
} else {
|
|
} else {
|
|
|
|
+ //DISCORD 接口未获取到服务器信息 resdata
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.publisherDialog,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.getDiscordGuildNoData
|
|
|
|
+ }, {
|
|
|
|
+ resData: resData
|
|
|
|
+ });
|
|
getGuildInfoByOpenApi({inviteCode}, cb);
|
|
getGuildInfoByOpenApi({inviteCode}, cb);
|
|
}
|
|
}
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
|
+ //DISCORD 接口 catch
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.publisherDialog,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.getDiscordGuildCatch
|
|
|
|
+ }, {
|
|
|
|
+ err: err
|
|
|
|
+ });
|
|
getGuildInfoByOpenApi({inviteCode}, cb);
|
|
getGuildInfoByOpenApi({inviteCode}, cb);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -1423,8 +1448,25 @@ const getGuildInfoByOpenApi = (params, cb) => {
|
|
let resData = inviteGuildResHandler(res, {inviteCode, inviteUrl});
|
|
let resData = inviteGuildResHandler(res, {inviteCode, inviteUrl});
|
|
if(resData.data.guildId) {
|
|
if(resData.data.guildId) {
|
|
cb && cb(resData);
|
|
cb && cb(resData);
|
|
- }
|
|
|
|
|
|
+ } else {
|
|
|
|
+ //OPENAPI 接口未获取到服务器信息 resdata
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.publisherDialog,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.getDiscordGuildOpenApiNoData
|
|
|
|
+ }, {
|
|
|
|
+ resData: resData
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
|
|
+ // OPENAPI 接口 catch 限频
|
|
|
|
+ Report.reportLog({
|
|
|
|
+ pageSource: Report.pageSource.publisherDialog,
|
|
|
|
+ businessType: Report.businessType.buttonClick,
|
|
|
|
+ objectType: Report.objectType.getDiscordGuildOpenApiCatch
|
|
|
|
+ }, {
|
|
|
|
+ err: err
|
|
|
|
+ });
|
|
if(iptErrMsgTxt.value && iptErrType == 'discord') {
|
|
if(iptErrMsgTxt.value && iptErrType == 'discord') {
|
|
iptErrMsgTxt.value = '';
|
|
iptErrMsgTxt.value = '';
|
|
iptErrType = '';
|
|
iptErrType = '';
|