コード例 #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));
    }
コード例 #2
0
ファイル: NetMgr.cs プロジェクト: streetlab/LiveBall
	private void webAPIUploadProcessEvent(BaseUploadRequest request, BaseEvent baseEvent)
	{	
		WWWForm form = request.GetRequestWWWForm ();
		WWW www = new WWW (Constants.QUERY_SERVER_HOST , form);

		StartCoroutine (webAPIProcess(www, baseEvent));
	}
コード例 #3
0
ファイル: NetMgr.cs プロジェクト: streetlab/Liveball_baseball
    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));
    }