|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-04-11 10:16:41
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-29 18:39:46
|
|
|
+ * @LastEditTime: 2025-04-29 18:59:59
|
|
|
* @Description:
|
|
|
*/
|
|
|
// ServerHandler.ts
|
|
|
@@ -121,7 +121,7 @@ export class ServerHandler {
|
|
|
getHbTxInfo() {
|
|
|
const param = {
|
|
|
url: ProtocolEvent.GetHbWithdrawInfo,
|
|
|
- callback: this.buildCallback('ServerHandler.inst.onHbTxInfo', 'ServerHandler.instonRequestFail')
|
|
|
+ callback: this.buildCallback('ServerHandler.inst.onHbTxInfo', 'ServerHandler.inst.onRequestFail')
|
|
|
};
|
|
|
this.sendMsgToServer(param);
|
|
|
}
|
|
|
@@ -145,7 +145,7 @@ export class ServerHandler {
|
|
|
getUserItemInfo() {
|
|
|
const param = {
|
|
|
url: ProtocolEvent.UserItemInfo,
|
|
|
- callback: this.buildCallback('ServerHandler.inst.onUserItemInfo', 'ServerHandler.instonRequestFail')
|
|
|
+ callback: this.buildCallback('ServerHandler.inst.onUserItemInfo', 'ServerHandler.inst.onRequestFail')
|
|
|
};
|
|
|
this.sendMsgToServer(param);
|
|
|
}
|
|
|
@@ -598,6 +598,7 @@ export class ServerHandler {
|
|
|
|
|
|
onRequestFail(code: number, str: string) {
|
|
|
console.log('[服务器] 请求失败', code, str);
|
|
|
+ oops.gui.toast("网络错误,请稍后重试~")
|
|
|
}
|
|
|
|
|
|
}
|