10035、10041
This commit is contained in:
parent
657a1bf877
commit
64f4c85ca2
|
@ -70,7 +70,7 @@ export default class MysApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getData(type, data = {}, cached = false) {
|
async getData(type, data = {}, cached = false) {
|
||||||
if (!this._device_fp && !data?.Getfp) {
|
if (!this._device_fp && !data?.Getfp && !data?.headers?.['x-rpc-device_fp']) {
|
||||||
this._device_fp = await this.getData('getFp', {
|
this._device_fp = await this.getData('getFp', {
|
||||||
seed_id: this.generateSeed(16),
|
seed_id: this.generateSeed(16),
|
||||||
Getfp: true
|
Getfp: true
|
||||||
|
@ -92,8 +92,8 @@ export default class MysApi {
|
||||||
headers = { ...headers, ...data.headers }
|
headers = { ...headers, ...data.headers }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type !== 'getFp' && !headers['x-rpc-device_fp']) {
|
if (type !== 'getFp' && !headers['x-rpc-device_fp'] && this._device_fp.data.device_fp) {
|
||||||
headers['x-rpc-device_fp'] = this._device_fp.data?.device_fp
|
headers['x-rpc-device_fp'] = this._device_fp.data.device_fp
|
||||||
}
|
}
|
||||||
|
|
||||||
let param = {
|
let param = {
|
||||||
|
|
|
@ -408,9 +408,11 @@ export default class MysInfo {
|
||||||
if (res.api === 'detail') res.retcode = 0
|
if (res.api === 'detail') res.retcode = 0
|
||||||
break
|
break
|
||||||
case 5003:
|
case 5003:
|
||||||
|
case 10041:
|
||||||
if (!isTask) this.e.reply([`UID:${this.uid},米游社账号异常,暂时无法查询`, this.mysButton])
|
if (!isTask) this.e.reply([`UID:${this.uid},米游社账号异常,暂时无法查询`, this.mysButton])
|
||||||
break
|
break
|
||||||
case 1034:
|
case 1034:
|
||||||
|
case 10035:
|
||||||
let handler = this.e.runtime?.handler || {}
|
let handler = this.e.runtime?.handler || {}
|
||||||
|
|
||||||
// 如果有注册的mys.req.err,调用
|
// 如果有注册的mys.req.err,调用
|
||||||
|
|
Loading…
Reference in New Issue