Exemplo n.º 1
0
        /// <summary>
        /// 取得Bundle的上传地址.
        /// 上传地址:<上传资源用URL>/<BuildMode>/<UploadDateTime>
        /// </summary>
        /// <returns>Bundle的上传地址.</returns>
        /// <param name="iServerInfo">上传服务器信息.</param>
        /// <param name="iUploadInfo">上传信息.</param>
        public static string GetBundleUploadBaseURL(
            UploadServerInfo iServerInfo, UploadItem iUploadInfo)
        {
            string uploadBaseUrl = GetUploadBaseURL(iServerInfo);

            string bundleUploadUrl = string.Format("{0}/{1}",
                                                   uploadBaseUrl,
                                                   UploadList.GetBundleRelativePath((TBundleType.Scene == iUploadInfo.BundleType)));

            // UtilsLog.Info ("GetBundleUploadBaseURL", "BundleUploadUrl:{0}", bundleUploadUrl);
            return(bundleUploadUrl);
        }