|
@@ -20,6 +20,7 @@ export interface MSG_Class {
|
|
|
chineseToggle: number
|
|
|
curTeachingStage: number
|
|
|
appCurTeachUI: number
|
|
|
+ chineseWords: any[]
|
|
|
}
|
|
|
export interface MSG_ClassLock {
|
|
|
isClassLock: boolean
|
|
@@ -68,6 +69,10 @@ export class LocalMsgManager {
|
|
|
break
|
|
|
case GAME_TYPE.gameChinese:
|
|
|
Data.game.semeBundle = await ccUtils.getBundleAsync(GAME_TYPE[Data.game.curGameType] + 'Seme')
|
|
|
+ Data.game.isChineseCheck = data.chineseWords.length > 0
|
|
|
+ if (Data.game.isChineseCheck) {
|
|
|
+ Data.game.words = data.chineseWords
|
|
|
+ }
|
|
|
Mgr.ui.show(UI.ChineseMainUI, {chineseToggle: data.chineseToggle})
|
|
|
if (data.chineseToggle < 3) Mgr.ui.show(UI.StudentLockUI)
|
|
|
break
|
|
@@ -222,6 +227,7 @@ export class LocalMsgManager {
|
|
|
let curTeachingStage = Data.game.curTeachingStage
|
|
|
let appCurTeachUI = Data.game.appCurTeachUI
|
|
|
let students = Data.child.classStudents
|
|
|
+ let chineseWords = Data.game.words
|
|
|
if (!Data.child.needLogin) students = []
|
|
|
let data = {
|
|
|
ID: MSG.class,
|
|
@@ -236,6 +242,7 @@ export class LocalMsgManager {
|
|
|
curTeachingStage,
|
|
|
appCurTeachUI,
|
|
|
smallPartID,
|
|
|
+ chineseWords,
|
|
|
}
|
|
|
this.sendMsg(data, client)
|
|
|
}
|