1
0
mirror of synced 2024-12-04 03:07: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 // Response data
let msg = { let msg = {
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
numOfOwnedCars: user.cars.length,
spappState: wm.wm.protobuf.SmartphoneAppState.SPAPP_UNREGISTERED, // Bannapassport Data
transferState: wm.wm.protobuf.TransferState.TRANSFERRED, unlockAt: null,
carStates, accessCode: null,
userId: user.id,
banapassportAmId: 1, banapassportAmId: 1,
mbId: 1, mbid: 1,
tutorials: user.tutorials, userId: user.id,
unusedCarTickets: tickets,
// 5 cars in-game, 200 cars on terminal // 5 cars in-game, 200 cars on terminal
numOfOwnedCars: user.cars.length,
cars: user.cars.slice(0, body.maxCars), 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 // Set the window sticker string for all cars
windowStickerString: wsString, windowStickerString: wsString,
// Set the window sticker font for all cars
windowStickerFont: wsFont, windowStickerFont: wsFont,
// Set initial value for competition (OCM) participation // Wangan Navi
competitionUserState: wm.wm.protobuf.GhostCompetitionParticipantState.COMPETITION_NOT_PARTICIPATED 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 dbId: currentRecord!.dbId
}, },
data: { data: {
model: body.car!.model!,
time: body.taResult!.time, time: body.taResult!.time,
section1Time: body!.taResult!.section_1Time, section1Time: body!.taResult!.section_1Time,
section2Time: body!.taResult!.section_2Time, section2Time: body!.taResult!.section_2Time,