|
@@ -6,6 +6,7 @@ const moment = require('moment');
|
|
|
const mysql = require('mysql2/promise');
|
|
|
const JSONbig = require('json-bigint')
|
|
|
const { HttpsProxyAgent } = require('https-proxy-agent');
|
|
|
+const helper = require('./src/helper');
|
|
|
class tools {
|
|
|
constructor(redis_help){
|
|
|
this.redis_help = redis_help
|
|
@@ -125,9 +126,9 @@ class tools {
|
|
|
return await this.redis_help.getKeyValue("qi_mao_mf_token")
|
|
|
}
|
|
|
|
|
|
- async tj_qm (){
|
|
|
- let num = await this.redis_help.getKeyValue("qi_mao_iap_find_iaa",0)
|
|
|
- await this.redis_help.setKeyValue("qi_mao_iap_find_iaa",num+1)
|
|
|
+ async tj_api (key){
|
|
|
+ let create_day = helper.getLocalDate()
|
|
|
+ await this.redis_help.incr(`${create_day}_${key}`)
|
|
|
}
|
|
|
|
|
|
getSupdate(){ //插入素材域名
|