|
@@ -223,10 +223,11 @@ namespace MySystem
|
|
|
{
|
|
|
IAopClient client = new DefaultAopClient("https://openapi.alipay.com/gateway.do", AppId, PrivateKey, "json", "1.0", "RSA2", AlipayPublicKey, "utf-8", false);
|
|
|
string fileName = path.Substring(path.LastIndexOf("/") + 1);
|
|
|
-
|
|
|
+ string imageBase64 = function.imageToBase64String(function.getPath(path));
|
|
|
|
|
|
AntMerchantExpandIndirectImageUploadRequest request = new AntMerchantExpandIndirectImageUploadRequest();
|
|
|
- FileItem imageContent = PublicFunction.GetNetFileItem(AppConfig.Base.OssHost + path);
|
|
|
+ FileItem imageContent = new FileItem(fileName, Convert.FromBase64String(imageBase64));
|
|
|
+
|
|
|
request.ImageContent = imageContent;
|
|
|
request.ImageType = "jpg";
|
|
|
try
|