jpsclient 2.5.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ module JPSClient
61
61
  # @option params [String] :projectPackageId 项目包ID
62
62
  # @return [Hash] API响应
63
63
  def upload_nuget_package(projectId:nil, params:nil)
64
- puts "========1111 upload_nuget_package" if ENV['PINDO_DEBUG']
64
+ puts "========1111 upload_nuget_package" if JPSClient.debug?
65
65
  config = @request_config && @request_config["project_package_upload_nuget"]
66
66
  raise JPSClient::ExceptionError, "Missing config for project_package_upload_nuget" unless config && config["url"]
67
67
  path = config["url"]
@@ -86,7 +86,7 @@ module JPSClient
86
86
  # 移除值为nil的键
87
87
  body_params.compact!
88
88
 
89
- if ENV['PINDO_DEBUG']
89
+ if JPSClient.debug?
90
90
  puts "[DEBUG]upload_nuget_package upload_nuget_package 请求详情:"
91
91
  puts "[DEBUG]upload_nuget_package URL: #{path}"
92
92
  puts "[DEBUG]upload_nuget_package 请求体:"