diff --git a/wai-server/.env.development b/wai-server/.env.development deleted file mode 100644 index 61a8647..0000000 --- a/wai-server/.env.development +++ /dev/null @@ -1,15 +0,0 @@ -PORT=3032 -API_VERSION=0 - -DB_USER='admin' -DB_HOST='202.103.68.93' -DB_PASSWORD='admin' -DB_DATABASE='whatsapp_individual' -DB_PORT=3306 - -NODE_ENV='development' - -WEBHOOK_URL='https://p9axztuwd7x8a7.mycht.cn/whatsapp_server/wawebhook' - -SERVER_DOMAIN='http://202.103.68.93:3031' -SERVER_NAME='aliyun1' diff --git a/wai-server/.env.example b/wai-server/.env.example deleted file mode 100644 index c53e118..0000000 --- a/wai-server/.env.example +++ /dev/null @@ -1,8 +0,0 @@ -PORT= -API_VERSION= - -DB_USER= -DB_HOST= -DB_PASSWORD= -DB_DATABASE= -DB_PORT= diff --git a/wai-server/core/baileys/index.js b/wai-server/core/baileys/index.js index 9a54f50..051efab 100644 --- a/wai-server/core/baileys/index.js +++ b/wai-server/core/baileys/index.js @@ -24,7 +24,7 @@ const createWhatsApp = async phone => { const whatsAppNo = phone; // 缓存 msgId-externalId,过期时间为 5 分钟 const externalIdCache = new NodeCache({ stdTTL: 60*5 }); - const logger = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` }, P.destination('./wa-logs-' + phone + '_' + channelId + '.txt')); + const logger = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` }, P.destination('./logs/wa-logs-' + phone + '_' + channelId + '.txt')); logger.level = 'trace'; const msgRetryCounterCache = new NodeCache(); const storeFilename = './baileys_auth_info/baileys_store_' + phone + '_' + channelId + '.json'