mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
自定义默认设备信息
This commit is contained in:
parent
a3ca1bb11e
commit
103661a4c5
3 changed files with 73 additions and 6 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import { generateSeed, randomString } from '../../utils/data.js';
|
||||
import settings from '../settings.js';
|
||||
import _ from 'lodash';
|
||||
import crypto from 'crypto';
|
||||
/**
|
||||
* derived from miao-yunzai
|
||||
|
|
@ -75,12 +77,12 @@ export default class ZZZApiTool {
|
|||
|
||||
getUrlMap = (data = {}) => {
|
||||
const {
|
||||
productName = 'J9110',
|
||||
deviceType = 'J9110',
|
||||
modelName = 'Sony',
|
||||
oaid = 'e3ba65d61709d17074a306072a7c3a2ec70e6d374ca6d29eb6b1b965cbb68e23',
|
||||
deviceInfo = `Sony\/J9110\/J9110:11\/55.2.A.4.332\/055002A004033203408384484:user\/release-keys`,
|
||||
board = 'msmnile',
|
||||
productName = _.get(settings.getConfig('device'), 'productName', 'J9110'),
|
||||
deviceType = _.get(settings.getConfig('device'), 'productType', 'J9110'),
|
||||
modelName = _.get(settings.getConfig('device'), 'modelName', 'Sony'),
|
||||
oaid = _.get(settings.getConfig('device'), 'oaid', 'e3ba65d61709d17074a306072a7c3a2ec70e6d374ca6d29eb6b1b965cbb68e23'),
|
||||
deviceInfo = _.get(settings.getConfig('device'), 'deviceInfo', 'Sony/J9110/J9110:11/55.2.A.4.332/055002A004033203408384484:user/release-keys'),
|
||||
board = _.get(settings.getConfig('device'), 'board', 'msmnile'),
|
||||
} = data;
|
||||
const deviceBrand = deviceInfo.split('/')[0];
|
||||
let urlMap = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue