Commit 808176f7 authored by 王明明's avatar 王明明

vy nk

parent 74e8e323
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "akm2",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@babel/core": "^7.21.0",
"canvas": "^2.11.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"fingerprint-generator": "^2.1.16",
"murmurhash3js": "^3.0.1"
}
}
This diff is collapsed.
...@@ -141,7 +141,9 @@ func (akm *AkmClient) postSensor(times int) error { ...@@ -141,7 +141,9 @@ func (akm *AkmClient) postSensor(times int) error {
if err != nil { if err != nil {
return err return err
} }
akm.logger.Info("第", times, "生成一次 abck 耗时 ", t2.Sub(t1).String(), " 响应abck结果 ", statusCode, " 请求耗时 ", time.Since(t2).String()) abck, bmsz = akm.GetCookie()
akm.logger.Info("第", times, "生成一次 abck 耗时 ", t2.Sub(t1).String(), " 响应abck结果 ", statusCode, " abck长度 ", len(abck), " 请求耗时 ", time.Since(t2).String())
return nil return nil
} }
func (akm *AkmClient) PostJson(times int, url, data string) (int, error) { func (akm *AkmClient) PostJson(times int, url, data string) (int, error) {
......
...@@ -11,7 +11,7 @@ func VueLing(carrierType, proxyUrl string) (*Akm, error) { ...@@ -11,7 +11,7 @@ func VueLing(carrierType, proxyUrl string) (*Akm, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
for i := 0; i < 3; i++ { for i := 0; i < 4; i++ {
err := akmClient.postSensor(i) err := akmClient.postSensor(i)
if err != nil { if err != nil {
akmClient.logger.WithError(err).Errorln("请求失败") akmClient.logger.WithError(err).Errorln("请求失败")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment