From 6e08a097f5acdf64f1d32fffe0643919347b777e Mon Sep 17 00:00:00 2001 From: beetcb <63141491+beetcb@users.noreply.github.com> Date: Tue, 26 Oct 2021 21:10:55 +0800 Subject: [PATCH] fix(check-in): update `Cpdaily-Extension` --- plugins/check-in/src/index.ts | 9 +++++---- plugins/check-in/src/types.ts | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/check-in/src/index.ts b/plugins/check-in/src/index.ts index 88b2035..50b2a45 100644 --- a/plugins/check-in/src/index.ts +++ b/plugins/check-in/src/index.ts @@ -1,9 +1,10 @@ import { CampusphereEndpoint } from 'cea-core' +import { LogInfoKeys } from './types.js' + import { handleCookie, sstore } from 'cea-core' import crypto from 'crypto' import fetch from 'node-fetch' import * as uuid from 'uuid' -import { LogInfoKeys } from './types.js' import type { CookieRawObject, @@ -105,7 +106,7 @@ export class CheckIn { uaIsCpadaily: true, signPhotoUrl: '', abnormalReason: '', - signVersion: '1.0.0', + signVersion: 'first_v2', signInstanceWid, isNeedExtra, extraFieldItems, @@ -168,8 +169,8 @@ export class CheckIn { const Cpdaily_Extension: CpdailyExtension = { lon: form.longitude.toString(), model: 'Cock', - appVersion: '8.2.14', - systemVersion: '4.4.4', + appVersion: '9.0.12', + systemVersion: '11', userId: this.user.username, systemName: 'android', lat: form.latitude.toString(), diff --git a/plugins/check-in/src/types.ts b/plugins/check-in/src/types.ts index 45e2a1f..c08e068 100644 --- a/plugins/check-in/src/types.ts +++ b/plugins/check-in/src/types.ts @@ -40,7 +40,7 @@ export type SignForm = { abnormalReason: string signPhotoUrl: string position: string - signVersion: '1.0.0' + signVersion: string extraFieldItems: Array<{ extraFieldItemWid: string extraFieldItemValue: string