VERSIONE 0.3.3: RISO:

"RISO.APP
alla fine copiare la cartella upload di insiemesipuo.app in riso.app"
Corretto BOT Menu
Altre sistemazioni (idShippings)
This commit is contained in:
paoloar77
2022-03-02 20:18:29 +01:00
parent 310eefba14
commit 94a2a073e5
6 changed files with 126 additions and 72 deletions

View File

@@ -392,7 +392,7 @@ module.exports = {
AYNI: '7',
CNM: '10',
PDNM: '12',
ISP: '13',
RISO: '13',
HELP_CHAT: '',
TYPECONF_ZOOM: 'zoom',
@@ -1063,6 +1063,14 @@ module.exports = {
return '';
},
getLinkUserProfile: function (idapp, username) {
return tools.getHostByIdApp(idapp) + '/my/' + username;
},
getLinkEditUserProfile: function (idapp) {
return tools.getHostByIdApp(idapp) + '/editprofile';
},
getConfSiteOptionEnabledByIdApp: function(idapp, option) {
const myapp = this.getApps().find(item => item.idapp === idapp);
@@ -1110,7 +1118,7 @@ module.exports = {
mypath = (myapp) ? myapp.dir : '';
if (dirmain) {
if (this.sulServer() !== 1) {
if (!this.sulServer()) {
mypath += '/public';
}
}
@@ -1683,6 +1691,12 @@ module.exports = {
return ((bit & whattofind) === whattofind);
},
isBitAttivoESelez(bit, whattofind, loSono) {
const abil = this.isBitActive(bit, whattofind);
return ((abil && loSono) || !abil);
},
SetBit(myval, bit) {
myval = myval & bit;
return myval;
@@ -2594,10 +2608,10 @@ module.exports = {
return process.env.LOCALE !== '1';
},
refreshAllTablesInMem(idapp, table) {
refreshAllTablesInMem(idapp, table, updatebot) {
const telegrambot = require('../telegram/telegrambot');
if (table === shared_consts.TAB_MYBOTS) {
if (table === shared_consts.TAB_MYBOTS || updatebot) {
telegrambot.reloadMenuBot(idapp);
} else if (table === shared_consts.TAB_SITES) {
telegrambot.reloadSites();
@@ -2606,11 +2620,14 @@ module.exports = {
},
downloadImage(url, filepath) {
return download.image({
url,
dest: filepath
});
try {
return download.image({
url,
dest: filepath
});
}catch (e) {
return false;
}
},