|
|
@ -27,6 +27,12 @@ const ANXINCLOUD_QINIU_SECRETKEY = process.env.ANXINCLOUD_QINIU_SECRETKEY || fla |
|
|
|
const ANXINCLOUD_QINIU_BUCKET_RESOURCE = process.env.ANXINCLOUD_QINIU_BUCKET_RESOURCE || flags.qnbkt; |
|
|
|
const ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE = process.env.ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE || flags.qndmn; |
|
|
|
|
|
|
|
//阿里OSS
|
|
|
|
const ALI_OSS_ACCESSKEY = process.env.ALI_OSS_ACCESSKEY || flags.aliOssAccessKey; |
|
|
|
const ALI_OSS_SECRETKET = process.env.ALI_OSS_SECRETKET || flags.aliOssSecretKey; |
|
|
|
const ALI_OSS_BUCKET = process.env.ALI_OSS_BUCKET || flags.aliOssBucket; |
|
|
|
const ALI_OSS_REGION = process.env.ALI_OSS_REGION || flags.aliOssRegion; |
|
|
|
|
|
|
|
if ( |
|
|
|
!FS_UNIAPP_API |
|
|
|
// || !ANXINCLOUD_QINIU_ACCESSKEY
|
|
|
@ -71,6 +77,13 @@ const product = { |
|
|
|
qiniu: { |
|
|
|
fetchUrl: '/_file-server', |
|
|
|
domain: ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE |
|
|
|
}, |
|
|
|
aliOss: { |
|
|
|
fetchUrl: '/_file-ali-server', |
|
|
|
accessKey: ALI_OSS_ACCESSKEY, |
|
|
|
secretKey: ALI_OSS_SECRETKET, |
|
|
|
bucket: ALI_OSS_BUCKET, |
|
|
|
region: ALI_OSS_REGION |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|