Commit 3086cff9 authored by liujiangnan's avatar liujiangnan

feat: 自由模式没有上次学习

parent 89c051d6
...@@ -688,6 +688,11 @@ export default class NewClass extends middleLayerBase { ...@@ -688,6 +688,11 @@ export default class NewClass extends middleLayerBase {
callback && callback(true); callback && callback(true);
return; return;
} }
// 自由模式不保存
if (this.gameModel == 'free') {
callback && callback(true);
return;
}
const token = cc.sys.localStorage.getItem('token'); const token = cc.sys.localStorage.getItem('token');
this.callNetworkApiGet('/api/oxford/v1/kid/info', { token }, (res) => { this.callNetworkApiGet('/api/oxford/v1/kid/info', { token }, (res) => {
const kidData = JSON.parse(res); const kidData = JSON.parse(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment