q-koa 9.5.2 → 9.5.3

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.
@@ -502,7 +502,11 @@ exports.urlToOss = async (ctx) => {
502
502
  oss_host,
503
503
  } = await appConfig.getObject('oss')
504
504
 
505
- if (!url || ['aliyun', cdn_host, oss_host].some((i) => url.includes(i)))
505
+ if (
506
+ !url ||
507
+ (!url.includes('://lanhu') &&
508
+ ['aliyun', cdn_host, oss_host].some((i) => url.includes(i)))
509
+ )
506
510
  return ctx.SUCCESS(url)
507
511
 
508
512
  if (!(accessKeyId && accessKeySecret && bucket && region)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "9.5.2",
3
+ "version": "9.5.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {