示例#1
0
        public void OnRequestFinished(bool isSuccess, HttpResp.ErrorType errType, string wwwText)
        {
            var resp = new HttpResp();

            resp.Error   = errType;
            resp.WwwText = wwwText;
            OnRequestFinished(isSuccess, resp);
        }
示例#2
0
 /// <summary>请求失败通用回调</summary>
 /// <param name="prefixMsg">描述文字前缀</param>
 public static void OnReqFail(string prefixMsg, HttpResp.ErrorType errorType, string errorMsg, bool needAlertWindow = true)
 {
     Debug.LogError(errorType + ", " + errorMsg);
     if (needAlertWindow)
     {
         LogicUtils.Instance.OnAlert(prefixMsg + errorType + ", " + errorMsg);
     }
 }