|
|
@ -29,7 +29,9 @@ namespace SDKTest |
|
|
|
public static void Main(string[] args) |
|
|
|
public static void Main(string[] args) |
|
|
|
{ |
|
|
|
{ |
|
|
|
TestGet(); |
|
|
|
TestGet(); |
|
|
|
|
|
|
|
Console.WriteLine("--------------------"); |
|
|
|
TestCommon(); |
|
|
|
TestCommon(); |
|
|
|
|
|
|
|
Console.WriteLine("--------------------"); |
|
|
|
TestUpload(); |
|
|
|
TestUpload(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -103,7 +105,10 @@ namespace SDKTest |
|
|
|
}; |
|
|
|
}; |
|
|
|
request.BizModel = model; |
|
|
|
request.BizModel = model; |
|
|
|
|
|
|
|
|
|
|
|
string root = Environment.CurrentDirectory; |
|
|
|
string workDir = Environment.CurrentDirectory; |
|
|
|
|
|
|
|
int index = workDir.LastIndexOf(@"/bin/Debug", StringComparison.Ordinal); |
|
|
|
|
|
|
|
string root = workDir.Substring(0, index); |
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("当前目录{0}", root); |
|
|
|
Console.WriteLine("当前目录{0}", root); |
|
|
|
|
|
|
|
|
|
|
|
// 文件上传 |
|
|
|
// 文件上传 |
|
|
|