q-koa 12.8.1 → 12.8.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.
|
@@ -370,7 +370,7 @@ module.exports = class Singleton {
|
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
async createShortLink(options) {
|
|
373
|
-
const { page, scene, ...rest } = options
|
|
373
|
+
const { page, scene, title, ...rest } = options
|
|
374
374
|
const access_token = await this.getAccessToken()
|
|
375
375
|
const url = util.format(createShortLinkUrl, access_token)
|
|
376
376
|
const query = options.scene
|
|
@@ -381,7 +381,7 @@ module.exports = class Singleton {
|
|
|
381
381
|
const payLoad = {
|
|
382
382
|
...rest,
|
|
383
383
|
page_url: options.page + (query ? '?' + query : ''),
|
|
384
|
-
page_title:
|
|
384
|
+
page_title: title,
|
|
385
385
|
is_permanent: true,
|
|
386
386
|
}
|
|
387
387
|
|