code: function sliceFinish(opt) {
          var that = this;
          var defer = $.Deferred();
          var file = opt.file;
  
          that.getAppSign(function (sign) {
  
              opt.sign = sign;
              var session = opt.session;
  
              var url = that.getCgiUrl(opt.path, opt.sign);
  
              var formData = new FormData();
              if (opt.sha) {
                  formData.append('sha', opt.sha);
              }
              formData.append('op', 'upload_slice_finish');
              formData.append('filesize', file.size);
              formData.append('session', session);
  
              $.ajax({
                  type: 'POST',
                  dataType: "JSON",
                  url: url,
                  data: formData,
                  success: function (res) {
                      res = res || {};
                      if (res.code == 0) {
                          defer.resolve(res);
                      } else {
                          defer.reject(res);
                      }
  
                  },
                  error: function () {
                      defer.reject();
                  },
                  processData: false,
                  contentType: false
              });
  
          });
  
  
          return defer.promise();
      }
docs: 结束分片上传