Commit ab88e178 by luyt

feat:添加页面路径,进入时间,离开时间,页面名称

1 parent d5b4f9dc
......@@ -29,6 +29,10 @@ class TrackController extends Controller {
staffAvatar: { type: 'string', required: false },
isMerchantStaffAdmin: { type: 'boolean', required: false },
token: 'string?',
pageUrl: 'string?',
pageName: 'string?',
intoTime: 'dateTime?',
leaveTime: 'dateTime?',
},
},
// merchant_name: 'number?',
......
'use strict';
module.exports = app => {
const { INTEGER, STRING, BOOLEAN } = app.Sequelize;
const { INTEGER, STRING, BOOLEAN, DATE } = app.Sequelize;
const Track = app.model.define('info', {
id: {
......@@ -25,7 +25,10 @@ module.exports = app => {
staffAvatar: STRING(100),
isMerchantStaffAdmin: BOOLEAN,
token: STRING(100),
pageUrl: STRING(100),
pageName: STRING(100),
intoTime: DATE,
leaveTime: DATE,
// info: STRING(255),
// // 公共模块
// merchant_name: STRING(10),
......
......@@ -15,7 +15,7 @@ class TrackService extends Service {
const result = await app.model.Track.bulkCreate(
params.info
);
console.log('result: ', result);
// console.log('result: ', result);
if (result) {
return {
code: 200,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!