• 大小: 23.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-18
  • 语言: 其他
  • 标签: 其他  

资源简介

开源版.zip

资源截图

代码片段和文件信息

// This file is auto-generated don‘t edit it. Thanks.

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;

using Tea;
using Tea.Utils;

using Alipay.EasySDK.base.Image.Models;

namespace Alipay.EasySDK.base.Image
{
    public class Client 
    {
        protected Alipay.EasySDK.Kernel.Client _kernel;

        public Client(Alipay.EasySDK.Kernel.Client kernel)
        {
            this._kernel = kernel;
        }

        public AlipayOfflineMaterialImageUploadResponse Upload(string imageName string imageFilePath)
        {
            Dictionaryject> runtime_ = new Dictionaryject>
            {
                {“connectTimeout“ 100000}
                {“readTimeout“ 100000}
                {“retry“ new Dictionary
                {
                    {“maxAttempts“ 0}
                }}
            };

            TeaRequest _lastRequest = null;
            Exception _lastException = null;
            long _now = System.DateTime.Now.Millisecond;
            int _retryTimes = 0;
            while (TeaCore.AllowRetry((IDictionary) runtime_[“retry“] _retryTimes _now))
            {
                if (_retryTimes > 0)
                {
                    int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_[“backoff“] _retryTimes);
                    if (backoffTime > 0)
                    {
                        TeaCore.Sleep(backoffTime);
                    }
                }
                _retryTimes = _retryTimes + 1;
                try
                {
                    TeaRequest request_ = new TeaRequest();
                    Dictionary systemParams = new Dictionary
                    {
                        {“method“ “alipay.offline.material.image.upload“}
                        {“app_id“ this._kernel.GetConfig(“appId“)}
                        {“timestamp“ this._kernel.GetTimestamp()}
                        {“format“ “json“}
                        {“version“ “1.0“}
                        {“alipay_sdk“ this._kernel.GetSdkVersion()}
                        {“charset“ “UTF-8“}
                        {“sign_type“ this._kernel.GetConfig(“signType“)}
                        {“app_cert_sn“ this._kernel.GetMerchantCertSN()}
                        {“alipay_root_cert_sn“ this._kernel.GetAlipayRootCertSN()}
                    };
                    Dictionaryject> bizParams = new Dictionaryject>(){};
                    Dictionary textParams = new Dictionary
                    {
                        {“image_type“ “jpg“}
                        {“image_name“ imageName}
                    };
                    Dictionary fileParams = new Dictionary
                    {
                        {“image_content“ imageFilePath}
                    };
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-11-30 17:38  开源版\
     目录           0  2020-11-30 16:43  开源版\application\
     文件          13  2020-11-29 22:03  开源版\application\.htaccess
     文件        1206  2020-11-29 22:03  开源版\application\404.html
     文件        1205  2020-11-29 22:03  开源版\application\500.html
     目录           0  2020-11-29 22:03  开源版\application\admin\
     文件        8734  2020-11-29 22:03  开源版\application\admin\common.php
     目录           0  2020-11-30 16:17  开源版\application\admin\controller\
     文件        5674  2020-11-29 23:06  开源版\application\admin\controller\base.php
     文件        7521  2020-11-29 22:03  开源版\application\admin\controller\Classify.php
     文件        6625  2020-11-29 23:07  开源版\application\admin\controller\Config.php
     文件       11041  2020-11-29 23:07  开源版\application\admin\controller\Course.php
     文件       14943  2020-11-29 23:07  开源版\application\admin\controller\Data.php
     文件        1406  2020-11-29 23:07  开源版\application\admin\controller\Email.php
     文件       13242  2020-11-29 23:07  开源版\application\admin\controller\Index.php
     文件        2682  2020-11-29 23:07  开源版\application\admin\controller\Log.php
     文件       10638  2020-11-29 23:08  开源版\application\admin\controller\Login.php
     文件        6344  2020-11-29 23:08  开源版\application\admin\controller\Menu.php
     文件        2875  2020-11-30 16:12  开源版\application\admin\controller\Order.php
     文件        4303  2020-11-30 16:13  开源版\application\admin\controller\Plugin.php
     文件        7604  2020-11-29 23:08  开源版\application\admin\controller\Role.php
     文件        6464  2020-11-30 16:17  开源版\application\admin\controller\Set.php
     文件        8811  2020-11-29 23:08  开源版\application\admin\controller\Shop.php
     文件        4412  2020-11-29 23:08  开源版\application\admin\controller\Teacher.php
     文件       12559  2020-11-29 23:09  开源版\application\admin\controller\Upload.php
     文件       13239  2020-11-29 23:09  开源版\application\admin\controller\User.php
     文件        5044  2020-11-29 23:09  开源版\application\admin\controller\Vip.php
     目录           0  2020-11-30 16:20  开源版\application\admin\model\
     文件        6641  2020-11-29 23:09  开源版\application\admin\model\AdsModel.php
     文件        8020  2020-11-29 23:09  开源版\application\admin\model\ClassifyModel.php
     文件        7627  2020-11-29 23:09  开源版\application\admin\model\ConfigModel.php
............此处省略4940个文件信息

评论

共有 条评论