|
@@ -1,19 +1,10 @@
|
|
-const config = require("../etc/config.json");
|
|
|
|
-const helper = require("../src/helper");
|
|
|
|
-const HttpClient = require("../src/HttpClient");
|
|
|
|
-const redis_help = require('../src/use_redis');
|
|
|
|
|
|
+const config = require("./etc/config.json");
|
|
|
|
+const helper = require("./src/helper");
|
|
|
|
+const redis_help = require('./src/use_redis');
|
|
const mysql = require('mysql2/promise');
|
|
const mysql = require('mysql2/promise');
|
|
-const tools = require("../tools");
|
|
|
|
-const get_fq_book_tab_controllers = require("../src/data_manager/Controllers/get_fq_book_tab_controllers");
|
|
|
|
|
|
+const tools = require("./tools");
|
|
const dbConfig = config.isDebug?config.debug_mysql:config.release_mysql
|
|
const dbConfig = config.isDebug?config.debug_mysql:config.release_mysql
|
|
const CMD = {}
|
|
const CMD = {}
|
|
-function getCodeFromUrl(url) {
|
|
|
|
- const codeMatch = url.match(/code=([^&]+)/);
|
|
|
|
- if (codeMatch && codeMatch[1]) {
|
|
|
|
- return codeMatch[1];
|
|
|
|
- }
|
|
|
|
- return null;
|
|
|
|
-}
|
|
|
|
async function processTask(){
|
|
async function processTask(){
|
|
let connection = null
|
|
let connection = null
|
|
let status = 0
|
|
let status = 0
|