feat: 新增资质文件上传类型并修正开发 COS 配置
This commit is contained in:
@@ -67,13 +67,13 @@
|
|||||||
},
|
},
|
||||||
"Storage": {
|
"Storage": {
|
||||||
"Provider": "TencentCos",
|
"Provider": "TencentCos",
|
||||||
"CdnBaseUrl": "https://saas2025-1388556178.cos.ap-beijing.myqcloud.com",
|
"CdnBaseUrl": "https://image-admin.laosankeji.com",
|
||||||
"TencentCos": {
|
"TencentCos": {
|
||||||
"SecretId": "AKID52mHageV8ZnnY5NRL3Xq270fAcw2vb5R",
|
"SecretId": "AKID52mHageV8ZnnY5NRL3Xq270fAcw2vb5R",
|
||||||
"SecretKey": "B8sPitsiEXcS4ScaMvGMErFOL3ZqsgFa",
|
"SecretKey": "B8sPitsiEXcS4ScaMvGMErFOL3ZqsgFa",
|
||||||
"Region": "ap-beijing",
|
"Region": "ap-beijing",
|
||||||
"Bucket": "saas-admin-1388556178",
|
"Bucket": "saas-admin-1388556178",
|
||||||
"Endpoint": "https://saas2025-1388556178.cos.ap-beijing.myqcloud.com",
|
"Endpoint": "https://cos.ap-beijing.myqcloud.com",
|
||||||
"CdnBaseUrl": "https://image-admin.laosankeji.com",
|
"CdnBaseUrl": "https://image-admin.laosankeji.com",
|
||||||
"UseHttps": true,
|
"UseHttps": true,
|
||||||
"ForcePathStyle": false
|
"ForcePathStyle": false
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ public enum UploadFileType
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
ReviewImage = 4,
|
ReviewImage = 4,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 入住资质文件。
|
||||||
|
/// </summary>
|
||||||
|
BusinessLicense = 5,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 其他通用文件。
|
/// 其他通用文件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ public static class UploadFileTypeParser
|
|||||||
"merchant_logo" => UploadFileType.MerchantLogo,
|
"merchant_logo" => UploadFileType.MerchantLogo,
|
||||||
"user_avatar" => UploadFileType.UserAvatar,
|
"user_avatar" => UploadFileType.UserAvatar,
|
||||||
"review_image" => UploadFileType.ReviewImage,
|
"review_image" => UploadFileType.ReviewImage,
|
||||||
|
"business_license" => UploadFileType.BusinessLicense,
|
||||||
_ => UploadFileType.Other
|
_ => UploadFileType.Other
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user