Esempio n. 1
0
    private void webAPIUploadProcessEvent(BaseUploadRequest request, BaseEvent baseEvent, bool isTest, bool showLoading)
    {
        WWWForm form = request.GetRequestWWWForm();

        string host = Constants.AUTH_SERVER_HOST;
        //        if(isTest){
        //            host = Constants.UPLOAD_TEST_SERVER_HOST;
        //            Debug.Log("Send to Test Server");
        //        } else{
        //            Debug.Log("Send to Real Server");
        //        }
        //        host = Constants.UPLOAD_TEST_SERVER_HOST;
        WWW www = new WWW(host, form);

        mReqParam = null;
        mUrl      = "";
        mUrl      = host;
        mForm     = form;
        if (UtilMgr.OnPause)
        {
            Debug.Log("Request is Canceled cause OnPause");
            //            return;
        }
        StartCoroutine(webAPIProcess(www, baseEvent, true, true));
    }
Esempio n. 2
0
	private void webAPIUploadProcessEvent(BaseUploadRequest request, BaseEvent baseEvent)
	{	
		WWWForm form = request.GetRequestWWWForm ();
		WWW www = new WWW (Constants.QUERY_SERVER_HOST , form);

		StartCoroutine (webAPIProcess(www, baseEvent));
	}
Esempio n. 3
0
    private void webAPIUploadProcessEvent(BaseUploadRequest request, BaseEvent baseEvent, bool isTest, bool showLoading)
    {
        WWWForm form = request.GetRequestWWWForm ();

        string host = Constants.AUTH_SERVER_HOST;
        //        if(isTest){
        //            host = Constants.UPLOAD_TEST_SERVER_HOST;
        //            Debug.Log("Send to Test Server");
        //        } else{
        //            Debug.Log("Send to Real Server");
        //        }
        //        host = Constants.UPLOAD_TEST_SERVER_HOST;
        WWW www = new WWW (host, form);
        mReqParam = null;
        mForm = form;
        if(UtilMgr.OnPause){
            Debug.Log("Request is Canceled cause OnPause");
            //            return;
        }
        string param = "";
        Debug.Log(host + "?" + form.headers.Values.ToString());
        StartCoroutine (webAPIProcess(www, baseEvent, true, true));
    }