mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-12 12:40:44 +08:00
.
This commit is contained in:
parent
f3450ec6d2
commit
ca6735fb2c
@ -30,6 +30,9 @@ export class Main extends Template {
|
||||
}
|
||||
}
|
||||
)
|
||||
if (typeof cart == 'string') {
|
||||
eval(`cart=${cart}`)
|
||||
}
|
||||
if (!this.haskey(cart, 'resultData.cartInfo.vendors')) {
|
||||
p.err("没有获取到购物车数据")
|
||||
return
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import {Template} from '../../template.js'
|
||||
// import jsonic from 'jsonic'
|
||||
|
||||
export class Main extends Template {
|
||||
constructor() {
|
||||
@ -40,9 +39,9 @@ export class Main extends Template {
|
||||
}
|
||||
}
|
||||
)
|
||||
// if (typeof list == 'string') {
|
||||
// list = jsonic.parse(list)
|
||||
// }
|
||||
if (typeof list == 'string') {
|
||||
eval(`list=${list}`)
|
||||
}
|
||||
let rm = []
|
||||
let reg = new RegExp(context.blackList)
|
||||
let status = 0
|
||||
|
||||
@ -34,6 +34,9 @@ export class Main extends Template {
|
||||
}
|
||||
}
|
||||
)
|
||||
if (typeof s == 'string') {
|
||||
eval(`s=${s}`)
|
||||
}
|
||||
if (this.haskey(s, 'followProductList')) {
|
||||
p.log("当前商品收藏数:", s.totalNum)
|
||||
if (s.totalNum>0) {
|
||||
|
||||
@ -36,6 +36,9 @@ export class Main extends Template {
|
||||
}
|
||||
}
|
||||
)
|
||||
if (typeof s == 'string') {
|
||||
eval(`s=${s}`)
|
||||
}
|
||||
if (this.haskey(s, 'result.showShopList')) {
|
||||
s = s.result
|
||||
p.log("当前店铺收藏数:", s.totalCount)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user