endsoft233 / xueanquan Goto Github PK
View Code? Open in Web Editor NEW学安全 / 学校安全教育平台 / safetree / xueanquan 批量学习工具
License: GNU General Public License v3.0
学安全 / 学校安全教育平台 / safetree / xueanquan 批量学习工具
License: GNU General Public License v3.0
正在处理 72005134 yangjinxin2229
登录返回 200 -3 帐号密码错误,您还可输入3次。若输入次数用完,将被锁定不可再登录。您可点击“忘记密码”自行找回密码或联系 平台工作人员。 null
登录失败,即将重置密码并重试。
重置返回 200 200 杨金鑫的密码重置成功!重置后的密码为:Aa6666yangjinxin2229,请告知该用户登录平台后尽快修改密码。
登录返回 200 -3 帐号密码错误,您还可输入2次。若输入次数用完,将被锁定不可再登录。您可点击“忘记密码”自行找回密码或联系 平台工作人员。 null
重置后仍然登录失败,请检查。
(node:18156) UnhandledPromiseRejectionWarning: Error: 管理员账号 Cookie 可能已经失效。
at _login (D:\其他\罗柳缘文件\网络自动学习\学校安全教育平台\永州\index.js:46:13)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async _doSign2 (D:\其他\罗柳缘文件\网络自动学习\学校安全教育平台\永州\index.js:121:18)
at async study (D:\其他\罗柳缘文件\网络自动学习\学校安全教育平台\永州\index.js:152:7)
(Use node --trace-warnings ...
to show where the warning was created)
(node:18156) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:18156) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
之前默认密码的方式更改了,我调整了密码的代码,现在好像网站登录逻辑变了?一直登不上去了,哥你能看看吗
==========================
正在处理 2079405980 tianshufang0702
登录返回 200 1 田淑芳 1090C0320E87D5E555FDC787826B298E
学知识 200 false 请先登录
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
<ref *1> Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:220:20) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read',
config: {
url: 'https://huodongapi.xueanquan.com/p/zhejiang/Topic/topic/platformapi/api/v1/records/sign',
method: 'post',
data: '{"specialId":663,"step":2}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Referer: 'https://zhoukou.xueanquan.com/login.html',
Cookie: 'RecordLoginInput_20083=tianshufang0702; SafeApp=true; ServerSide=https://zhoukou.xueanquan.com; UserID=1090C0320E87D5E555FDC787826B298E; _UCodeStr={%0d%0a "Grade": 11,%0d%0a "ClassRoom": 1088163,%0d%0a "CityCode": 190032%0d%0a};',
'User-Agent': 'axios/0.21.1',
'Content-Length': 26
},
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *4> Writable {
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: false,
decodeStrings: true,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: null,
writelen: 0,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 0,
constructed: true,
prefinished: false,
errorEmitted: false,
emitClose: true,
autoDestroy: true,
errored: null,
closed: false,
closeEmitted: false,
[Symbol(kOnFinished)]: []
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError]
},
_eventsCount: 2,
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: 10485760,
protocol: 'https:',
path: '/p/zhejiang/Topic/topic/platformapi/api/v1/records/sign',
method: 'POST',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Referer: 'https://zhoukou.xueanquan.com/login.html',
Cookie: 'RecordLoginInput_20083=tianshufang0702; SafeApp=true; ServerSide=https://zhoukou.xueanquan.com; UserID=1090C0320E87D5E555FDC787826B298E; _UCodeStr={%0d%0a "Grade": 11,%0d%0a "ClassRoom": 1088163,%0d%0a "CityCode": 190032%0d%0a};',
'User-Agent': 'axios/0.21.1',
'Content-Length': 26
},
agent: undefined,
agents: { http: undefined, https: undefined },
auth: undefined,
hostname: 'huodongapi.xueanquan.com',
port: null,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [
'ACL', 'BIND', 'CHECKOUT',
'CONNECT', 'COPY', 'DELETE',
'GET', 'HEAD', 'LINK',
'LOCK', 'M-SEARCH', 'MERGE',
'MKACTIVITY', 'MKCALENDAR', 'MKCOL',
'MOVE', 'NOTIFY', 'OPTIONS',
'PATCH', 'POST', 'PROPFIND',
'PROPPATCH', 'PURGE', 'PUT',
'REBIND', 'REPORT', 'SEARCH',
'SOURCE', 'SUBSCRIBE', 'TRACE',
'UNBIND', 'UNLINK', 'UNLOCK',
'UNSUBSCRIBE'
],
STATUS_CODES: {
'100': 'Continue',
'101': 'Switching Protocols',
'102': 'Processing',
'103': 'Early Hints',
'200': 'OK',
'201': 'Created',
'202': 'Accepted',
'203': 'Non-Authoritative Information',
'204': 'No Content',
'205': 'Reset Content',
'206': 'Partial Content',
'207': 'Multi-Status',
'208': 'Already Reported',
'226': 'IM Used',
'300': 'Multiple Choices',
'301': 'Moved Permanently',
'302': 'Found',
'303': 'See Other',
'304': 'Not Modified',
'305': 'Use Proxy',
'307': 'Temporary Redirect',
'308': 'Permanent Redirect',
'400': 'Bad Request',
'401': 'Unauthorized',
'402': 'Payment Required',
'403': 'Forbidden',
'404': 'Not Found',
'405': 'Method Not Allowed',
'406': 'Not Acceptable',
'407': 'Proxy Authentication Required',
'408': 'Request Timeout',
'409': 'Conflict',
'410': 'Gone',
'411': 'Length Required',
'412': 'Precondition Failed',
'413': 'Payload Too Large',
'414': 'URI Too Long',
'415': 'Unsupported Media Type',
'416': 'Range Not Satisfiable',
'417': 'Expectation Failed',
'418': "I'm a Teapot",
'421': 'Misdirected Request',
'422': 'Unprocessable Entity',
'423': 'Locked',
'424': 'Failed Dependency',
'425': 'Too Early',
'426': 'Upgrade Required',
'428': 'Precondition Required',
'429': 'Too Many Requests',
'431': 'Request Header Fields Too Large',
'451': 'Unavailable For Legal Reasons',
'500': 'Internal Server Error',
'501': 'Not Implemented',
'502': 'Bad Gateway',
'503': 'Service Unavailable',
'504': 'Gateway Timeout',
'505': 'HTTP Version Not Supported',
'506': 'Variant Also Negotiates',
'507': 'Insufficient Storage',
'508': 'Loop Detected',
'509': 'Bandwidth Limit Exceeded',
'510': 'Not Extended',
'511': 'Network Authentication Required'
},
Agent: [Function: Agent] { defaultMaxSockets: Infinity },
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function: __node_internal_],
validateHeaderValue: [Function: __node_internal_],
get: [Function: get],
request: [Function: request],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
},
pathname: '/p/zhejiang/Topic/topic/platformapi/api/v1/records/sign'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 26,
_requestBodyBuffers: [
{
data: Buffer(26) [Uint8Array] [
123, 34, 115, 112, 101, 99, 105,
97, 108, 73, 100, 34, 58, 54,
54, 51, 44, 34, 115, 116, 101,
112, 34, 58, 50, 125
],
encoding: undefined
}
],
_onNativeResponse: [Function (anonymous)],
_currentRequest: <ref *2> ClientRequest {
_events: [Object: null prototype] {
response: [Function: bound onceWrapper] {
listener: [Function (anonymous)]
},
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: true,
_closed: false,
socket: <ref *3> TLSSocket {
_tlsOptions: {
allowHalfOpen: undefined,
pipe: false,
secureContext: SecureContext { context: SecureContext {} },
isServer: false,
requestCert: true,
rejectUnauthorized: true,
session: Buffer(2086) [Uint8Array] [
48, 130, 8, 34, 2, 1, 1, 2, 2, 3, 3, 4,
2, 192, 47, 4, 32, 144, 20, 90, 123, 183, 173, 174,
253, 251, 107, 162, 227, 6, 97, 175, 32, 67, 60, 121,
49, 226, 22, 113, 156, 103, 156, 0, 37, 79, 94, 215,
75, 4, 48, 42, 203, 248, 220, 198, 149, 253, 7, 133,
119, 223, 254, 164, 203, 34, 62, 161, 86, 55, 201, 86,
31, 15, 255, 241, 40, 0, 132, 124, 192, 168, 108, 126,
143, 37, 32, 75, 104, 163, 28, 218, 217, 121, 13, 216,
73, 206, 159, 161,
... 1986 more items
],
ALPNProtocols: undefined,
requestOCSP: undefined,
enableTrace: undefined,
pskCallback: undefined,
highWaterMark: undefined,
onread: undefined,
signal: undefined
},
_secureEstablished: false,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: true,
_SNICallback: null,
servername: null,
alpnProtocol: null,
authorized: false,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype] {
close: [
[Function: onSocketCloseDestroySSL],
[Function],
[Function: onClose],
[Function: socketCloseListener]
],
end: [ [Function: onConnectEnd], [Function: onReadableStreamEnd] ],
newListener: [Function: keylogNewListener],
secure: [Function: onConnectSecure],
session: [Function (anonymous)],
free: [Function: onFree],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
drain: [Function: ondrain]
},
_eventsCount: 10,
connecting: false,
_hadError: true,
_parent: null,
_host: 'huodongapi.xueanquan.com',
_readableState: ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
flowing: true,
ended: false,
endEmitted: false,
reading: true,
constructed: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
errorEmitted: true,
emitClose: false,
autoDestroy: true,
destroyed: true,
errored: [Circular *1],
closed: true,
closeEmitted: true,
defaultEncoding: 'utf8',
awaitDrainWriters: null,
multiAwaitDrain: false,
readingMore: false,
dataEmitted: false,
decoder: null,
encoding: null,
[Symbol(kPaused)]: false
},
_maxListeners: undefined,
_writableState: WritableState {
objectMode: false,
highWaterMark: 16384,
finalCalled: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
destroyed: true,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 577,
writing: true,
corked: 0,
sync: false,
bufferProcessing: false,
onwrite: [Function: bound onwrite],
writecb: [Function (anonymous)],
writelen: 577,
afterWriteTickInfo: null,
buffered: [],
bufferedIndex: 0,
allBuffers: true,
allNoop: true,
pendingcb: 1,
constructed: true,
prefinished: false,
errorEmitted: true,
emitClose: false,
autoDestroy: true,
errored: [Circular *1],
closed: true,
closeEmitted: true,
[Symbol(kOnFinished)]: []
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: null,
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *2],
[Symbol(res)]: TLSWrap {
_parent: TCP {
reading: [Getter/Setter],
onconnection: null,
[Symbol(owner_symbol)]: [Circular *3],
[Symbol(handle_onclose)]: [Function: done]
},
_parentWrap: undefined,
_secureContext: SecureContext { context: SecureContext {} },
reading: true,
onkeylog: [Function: onkeylog],
onhandshakestart: {},
onhandshakedone: [Function (anonymous)],
onocspresponse: [Function: onocspresponse],
onnewsession: [Function: onnewsessionclient],
onerror: [Function: onerror],
[Symbol(owner_symbol)]: [Circular *3]
},
[Symbol(verified)]: false,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 799,
[Symbol(kHandle)]: null,
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 577,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 577,
[Symbol(connect-options)]: {
rejectUnauthorized: true,
ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
checkServerIdentity: [Function: checkServerIdentity],
minDHSize: 1024,
session: Buffer(2086) [Uint8Array] [
48, 130, 8, 34, 2, 1, 1, 2, 2, 3, 3, 4,
2, 192, 47, 4, 32, 144, 20, 90, 123, 183, 173, 174,
253, 251, 107, 162, 227, 6, 97, 175, 32, 67, 60, 121,
49, 226, 22, 113, 156, 103, 156, 0, 37, 79, 94, 215,
75, 4, 48, 42, 203, 248, 220, 198, 149, 253, 7, 133,
119, 223, 254, 164, 203, 34, 62, 161, 86, 55, 201, 86,
31, 15, 255, 241, 40, 0, 132, 124, 192, 168, 108, 126,
143, 37, 32, 75, 104, 163, 28, 218, 217, 121, 13, 216,
73, 206, 159, 161,
... 1986 more items
],
maxRedirects: 21,
maxBodyLength: 10485760,
protocol: 'https:',
path: null,
method: 'POST',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json;charset=utf-8',
Referer: 'https://zhoukou.xueanquan.com/login.html',
Cookie: 'RecordLoginInput_20083=tianshufang0702; SafeApp=true; ServerSide=https://zhoukou.xueanquan.com; UserID=1090C0320E87D5E555FDC787826B298E; _UCodeStr={%0d%0a "Grade": 11,%0d%0a "ClassRoom": 1088163,%0d%0a "CityCode": 190032%0d%0a};',
'User-Agent': 'axios/0.21.1',
'Content-Length': 26
},
agent: undefined,
agents: { http: undefined, https: undefined },
auth: undefined,
hostname: 'huodongapi.xueanquan.com',
port: 443,
nativeProtocols: { 'http:': [Object], 'https:': [Object] },
pathname: '/p/zhejiang/Topic/topic/platformapi/api/v1/records/sign',
_defaultAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype],
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
host: 'huodongapi.xueanquan.com',
servername: 'huodongapi.xueanquan.com',
_agentKey: 'huodongapi.xueanquan.com:443:::::::::::::::::::::',
encoding: null,
singleUse: true
}
},
_header: 'POST /p/zhejiang/Topic/topic/platformapi/api/v1/records/sign HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json;charset=utf-8\r\n' +
'Referer: https://zhoukou.xueanquan.com/login.html\r\n' +
'Cookie: RecordLoginInput_20083=tianshufang0702; SafeApp=true; ServerSide=https://zhoukou.xueanquan.com; UserID=1090C0320E87D5E555FDC787826B298E; _UCodeStr={%0d%0a "Grade": 11,%0d%0a "ClassRoom": 1088163,%0d%0a "CityCode": 190032%0d%0a};\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 26\r\n' +
'Host: huodongapi.xueanquan.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype] { path: null },
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {
'huodongapi.xueanquan.com:443:::::::::::::::::::::': [ [TLSSocket] ]
},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: {
map: {
'zhoukou.xueanquan.com:443:::::::::::::::::::::': [Buffer [Uint8Array]],
'huodongapi.xueanquan.com:443:::::::::::::::::::::': [Buffer [Uint8Array]]
},
list: [
'zhoukou.xueanquan.com:443:::::::::::::::::::::',
'huodongapi.xueanquan.com:443:::::::::::::::::::::'
]
},
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/p/zhejiang/Topic/topic/platformapi/api/v1/records/sign',
_ended: false,
res: null,
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'huodongapi.xueanquan.com',
protocol: 'https:',
_redirectable: [Circular *4],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, */*' ],
'content-type': [ 'Content-Type', 'application/json;charset=utf-8' ],
referer: [ 'Referer', 'https://zhoukou.xueanquan.com/login.html' ],
cookie: [
'Cookie',
'RecordLoginInput_20083=tianshufang0702; SafeApp=true; ServerSide=https://zhoukou.xueanquan.com; UserID=1090C0320E87D5E555FDC787826B298E; _UCodeStr={%0d%0a "Grade": 11,%0d%0a "ClassRoom": 1088163,%0d%0a "CityCode": 190032%0d%0a};'
],
'user-agent': [ 'User-Agent', 'axios/0.21.1' ],
'content-length': [ 'Content-Length', 26 ],
host: [ 'Host', 'huodongapi.xueanquan.com' ]
}
},
_currentUrl: 'https://huodongapi.xueanquan.com/p/zhejiang/Topic/topic/platformapi/api/v1/records/sign',
[Symbol(kCapture)]: false
},
response: undefined,
isAxiosError: true,
toJSON: [Function: toJSON]
}
此处看视频返回 true 答题返回 -1
在后台查看的时候显示的都是未完成 ??
表示不解
相应配置部分如下
/* === 专题活动 === */
// 如 https://huodong.xueanquan.com/2021fzjz/index.html
let special = "https://huodong.xueanquan.com/2021firesafety/index.html";
special.specialId = 663; // 打开专题活动页,按 F12 调出 Console,输入 specialId 取该专题活动的 specialId。
special.steps = ['学知识', '查隐患']; // 不同专题活动步骤不同,大部分是两步——看视频和答问卷——请按照实际情况修改。
返回结果
正在处理 2051585975 xx
登录返回 200 1 xx 1C0CDD69F61197402000398F9A9E9856
看视频 true
答题返回 200 '-1'
==========================
正在处理 2052840648 xx
登录返回 200 1 xxx 111B025446076A68C6B362A567D06794
看视频 true
答题返回 200 '-1'
==========================
正在处理 2061492080 xx
登录返回 200 1 xxx 2DBD8AC305F46A6228C68BEB834BE2CC
看视频 true
答题返回 200 '-1'
==========================
$ node .\index.js
==========================
欢迎使用,您已经填入了 41 个账号,已经填写了管理员 Cookie,请更换 willDo 中的 method 方式开始操作。
==========================
已完成。
==========================
// config.js
// 做了一点微小改动
/* === 执行操作 === */
let methods = {
anquanxuexi:0,
zhuantihuodong:1,
jiaqihuodong:2,
listInfo:3
};
// methods.anquanxuexi = 0; // 安全学习
// methods. = 1; // 专题活动
// methods. = 2; // 假期活动
// methods. = 3;
let willDo = methods["zhuantihuodong"];
你好,我正在学习JavaScript.. 对部分的js代码不是很理解 , 但是想实现使用这个项目
这里除了基本的个人账户信息之外我只配置了config中的专题活动一项.如下:
/* === 专题活动 === */
// 如 https://huodong.xueanquan.com/2021fzjz/index.html
let special = "https://huodong.xueanquan.com/2021autumnclass/yitu.html";
special.specialId = 623; // 打开专题活动页,按 F12 调出 Console,输入 specialId 取该专题活动的 specialId。
special.steps = ['安全常识', '安全挑战']; // 不同专题活动步骤不同,大部分是两步——看视频和答问卷——请按照实际情况修改。
node执行结果始终为开头所述那样,
表示不解.....遂前来赐教
我配置了使用不了,😭,大佬,能不能出一个完整的配置过程?特别是这个node的配置。
C:\Users\86153\xueanquan\index.js:31
SyntaxError: Unexpected identifier
�[90m at wrapSafe (internal/modules/cjs/loader.js:1001:16)�[39m
�[90m at Module._compile (internal/modules/cjs/loader.js:1049:27)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:950:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:790:12)�[39m
�[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)�[39m
�[90m at internal/main/run_main_module.js:17:47�[39m
c:\xue>node index.js
c:\xue\index.js:9
throw new Error ("请将 config_template.js 重命名为 config.js 并按提示修改该文件。")
^
Error: 请将 config_template.js 重命名为 config.js 并按提示修改该文件。
at Object. (c:\xue\index.js:9:11)
�[90m at Module._compile (internal/modules/cjs/loader.js:1085:14)�[39m
�[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)�[39m
�[90m at Module.load (internal/modules/cjs/loader.js:950:32)�[39m
�[90m at Function.Module._load (internal/modules/cjs/loader.js:790:12)�[39m
�[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)�[39m
�[90m at internal/main/run_main_module.js:17:47�[39m
c:\xue>dir
驱动器 C 中的卷是 Local Disk
卷的序列号是 8248-9E75
c:\xue 的目录
2021/10/13 17:33
.SyntaxError: Unexpected identifier
at wrapSafe (internal/modules/cjs/loader.js:1001:16)
at Module._compile (internal/modules/cjs/loader.js:1049:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47
一直提示这个,还有什么要改的,求求了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.