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.
@@ -4,6 +4,7 @@ const md5 = require('js-md5')
4
4
  const superAdmin = {
5
5
  name: 'admin',
6
6
  password: 'admin123',
7
+ is_dev: true,
7
8
  }
8
9
 
9
10
  exports.login = async (ctx) => {
@@ -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: options.title,
384
+ page_title: title,
385
385
  is_permanent: true,
386
386
  }
387
387
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.8.1",
3
+ "version": "12.8.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {