mirror of
https://github.com/develop202/migu_video.git
synced 2025-12-17 15:25:03 +08:00
添加是否登录日志
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getStringMD5 } from "./EncryUtils.js";
|
||||
import { getddCalcuURL, getddCalcuURL720p } from "./ddCalcuURL.js";
|
||||
import { printYellow } from "./colorOut.js";
|
||||
import { printDebug, printYellow } from "./colorOut.js";
|
||||
|
||||
/**
|
||||
* @typedef {object} SaltSign
|
||||
@@ -80,7 +80,7 @@ async function getAndroidURL(userId, token, pid, rateType) {
|
||||
}).then(r => r.json())
|
||||
}
|
||||
|
||||
// console.dir(respData, { depth: null })
|
||||
printDebug(respData)
|
||||
// console.log(respData)
|
||||
const url = respData.body.urlInfo?.url
|
||||
// console.log(rateType)
|
||||
@@ -98,7 +98,6 @@ async function getAndroidURL(userId, token, pid, rateType) {
|
||||
|
||||
rateType = respData.body.urlInfo?.rateType
|
||||
// console.log("清晰度" + rateType)
|
||||
|
||||
return {
|
||||
url: resURL,
|
||||
rateType: parseInt(rateType),
|
||||
@@ -144,6 +143,7 @@ async function getAndroidURL720p(pid) {
|
||||
headers: headers
|
||||
}).then(r => r.json())
|
||||
|
||||
printDebug(respData)
|
||||
// console.dir(respData, { depth: null })
|
||||
const url = respData.body.urlInfo?.url
|
||||
// console.log(rateType)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { debug } from "../config.js"
|
||||
import { getLogDateTime } from "./time.js"
|
||||
|
||||
function basePrint(color, msg) {
|
||||
@@ -27,7 +28,12 @@ function printMagenta(msg) {
|
||||
function printGrey(msg) {
|
||||
basePrint("\x1B[2m", msg)
|
||||
}
|
||||
function printDebug(obj) {
|
||||
if (debug) {
|
||||
console.dir(obj, { depth: null })
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
printGreen, printBlue, printRed, printYellow, printMagenta, printGrey
|
||||
printGreen, printBlue, printRed, printYellow, printMagenta, printGrey, printDebug
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
|
||||
// 睡眠
|
||||
function delay(ms) {
|
||||
return new Promise(resolve => {
|
||||
setTimeout(resolve, ms)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { printDebug } from "./colorOut.js";
|
||||
import { AESencrypt, getStringMD5, RSAencrypt } from "./EncryUtils.js"
|
||||
|
||||
/**
|
||||
@@ -57,6 +58,7 @@ async function refreshToken(userId, token) {
|
||||
// console.log(respResult)
|
||||
return true
|
||||
}
|
||||
console.dir(respResult, { depth: null })
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user