|
|
const _ = require('lodash');
|
|
|
const {Activity} = require('../../../db');
|
|
|
const mysqlCli = global.yoho.utils.mysqlCli;
|
|
|
|
...
|
...
|
@@ -75,6 +76,7 @@ class ActWheelSurfModel extends global.yoho.BaseModel { |
|
|
|
|
|
getActConf(actId) {
|
|
|
return this.client.hgetallAsync(`turntable:${actId}`).then(conf => {
|
|
|
conf = conf || {};
|
|
|
Object.keys(conf).forEach(key => {
|
|
|
if (conf[key] && !_.isNaN(Number(conf[key]))) {
|
|
|
conf[key] = Number(conf[key])
|
...
|
...
|
|