Commit 65bbe703 authored by wildfirecode's avatar wildfirecode

1

parent 96bd5c99
...@@ -2558,6 +2558,11 @@ export default class MainScene extends Scene { ...@@ -2558,6 +2558,11 @@ export default class MainScene extends Scene {
* @param callback * @param callback
*/ */
submit(json: string) { submit(json: string) {
try {
if (window['getRST']) window['getRST']();
} catch (error) {
console.warn(error)
}
NetManager.ins.hc_submit((s, data) => { NetManager.ins.hc_submit((s, data) => {
if (s) { if (s) {
wait(200).then(() => { wait(200).then(() => {
......
...@@ -108,11 +108,11 @@ showlog(){ ...@@ -108,11 +108,11 @@ showlog(){
// Loading.instace.show(); // Loading.instace.show();
this.touchChildren = false; this.touchChildren = false;
this.touchEnabled = false; this.touchEnabled = false;
try { // try {
if (window['getRST']) window['getRST'](); // if (window['getRST']) window['getRST']();
} catch (error) { // } catch (error) {
console.warn(error) // console.warn(error)
} // }
hdGameDoDojoin(async (success) => { hdGameDoDojoin(async (success) => {
// Loading.instace.hide(); // Loading.instace.hide();
......
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