1
0
mirror of synced 2024-12-03 18:57:19 +01:00

Merge pull request #49 from shiroikitsu8/master-asakura

no register app pop up
This commit is contained in:
Luna 2022-11-07 06:37:37 +00:00 committed by GitHub
commit 5780c8b9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 12 deletions

View File

@ -299,27 +299,42 @@ export default class UserModule extends Module {
// Response data
let msg = {
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
numOfOwnedCars: user.cars.length,
spappState: wm.wm.protobuf.SmartphoneAppState.SPAPP_UNREGISTERED,
transferState: wm.wm.protobuf.TransferState.TRANSFERRED,
carStates,
userId: user.id,
// Bannapassport Data
unlockAt: null,
accessCode: null,
banapassportAmId: 1,
mbId: 1,
tutorials: user.tutorials,
unusedCarTickets: tickets,
mbid: 1,
userId: user.id,
// 5 cars in-game, 200 cars on terminal
numOfOwnedCars: user.cars.length,
cars: user.cars.slice(0, body.maxCars),
carStates,
// Ticket Owned
unusedCarTickets: tickets,
fullTunedCarTicket: true,
// Tutorials Confirmed
tutorials: user.tutorials,
// Competition (OCM) participation
competitionUserState: wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED,
// Set the window sticker string for all cars
windowStickerString: wsString,
// Set the window sticker font for all cars
windowStickerFont: wsFont,
// Set initial value for competition (OCM) participation
competitionUserState: wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED
// Wangan Navi
spappState: wm.wm.protobuf.SmartphoneAppState.SPAPP_BNID,
// idk what this is
transferState: wm.wm.protobuf.TransferState.TRANSFERRED,
wasCreatedToday: false,
// Invite Friend Campaign Event
participatedInInviteFriendCampaign: false
}

View File

@ -31,6 +31,7 @@ export async function saveTimeAttackResult(body: wm.protobuf.SaveGameResultReque
dbId: currentRecord!.dbId
},
data: {
model: body.car!.model!,
time: body.taResult!.time,
section1Time: body!.taResult!.section_1Time,
section2Time: body!.taResult!.section_2Time,