Skip to content

Commit

Permalink
fix(check-in): update Cpdaily-Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
beetcb committed Oct 26, 2021
1 parent f6ce90a commit 6e08a09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions plugins/check-in/src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -105,7 +106,7 @@ export class CheckIn {
uaIsCpadaily: true,
signPhotoUrl: '',
abnormalReason: '',
signVersion: '1.0.0',
signVersion: 'first_v2',
signInstanceWid,
isNeedExtra,
extraFieldItems,
Expand Down Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion plugins/check-in/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e08a09

Please sign in to comment.