Authored by weiqingting

tijiao

@@ -63,12 +63,12 @@ var apiCofig = { @@ -63,12 +63,12 @@ var apiCofig = {
63 views: path.resolve(__dirname,"apps", "0", "views/1") 63 views: path.resolve(__dirname,"apps", "0", "views/1")
64 }, 64 },
65 useToEntry:function(app){ 65 useToEntry:function(app){
66 - // if(process.env.NODE_ENV!="coding"&&process.env.NODE_ENV!=="test"){  
67 - // options.store=new Redis({  
68 - // port: 6379,  
69 - // host: 'localhost'  
70 - // });  
71 - // } 66 + if(process.env.NODE_ENV!="coding"&&process.env.NODE_ENV!=="test"){
  67 + options.store=new Redis({
  68 + port: 6379,
  69 + host: 'localhost'
  70 + });
  71 + }
72 app.use(session(options)); 72 app.use(session(options));
73 }, 73 },
74 useToOuter:function(app,controllers){ 74 useToOuter:function(app,controllers){
@@ -84,6 +84,7 @@ if(process.env.NODE_ENV!=='development'){ @@ -84,6 +84,7 @@ if(process.env.NODE_ENV!=='development'){
84 84
85 /*服务器环境*/ 85 /*服务器环境*/
86 if(process.env.NODE_ENV!="coding"){ 86 if(process.env.NODE_ENV!="coding"){
  87 + console.log("服务器环境");
87 apiCofig.MVC={ 88 apiCofig.MVC={
88 Interfacer:path.join(__dirname,"interfaces/0.js").replace(/0/g,'*'), 89 Interfacer:path.join(__dirname,"interfaces/0.js").replace(/0/g,'*'),
89 Controller:path.join(__dirname,"controllers/0.js").replace(/0/g,'*'), 90 Controller:path.join(__dirname,"controllers/0.js").replace(/0/g,'*'),
@@ -55,6 +55,22 @@ module.exports={ @@ -55,6 +55,22 @@ module.exports={
55 {name: 'batchList', type: 'String'} 55 {name: 'batchList', type: 'String'}
56 ] 56 ]
57 }, 57 },
  58 + updateProductPrice:{
  59 + title:'单个变价接口',
  60 + url: '/product/updateProductPrice',
  61 + params: [
  62 + {name: 'product_skn', type: 'number'},
  63 + {name: 'sales_price', type: 'number'},
  64 + {name: 'vip_discount_type', type: 'number'},
  65 + {name: 'return_coin', type: 'number'},
  66 + {name: 'vip_price', type: 'number'},
  67 + {name: 'vip1_price', type: 'number'},
  68 + {name: 'vip2_price', type: 'number'},
  69 + {name: 'vip3_price', type: 'number'},
  70 + {name: 'cgpriceStartTime', type: 'String'},
  71 + {name: 'cgpriceEndTime', type: 'String'}
  72 + ]
  73 + },
58 queryBrandCooperationList:{ 74 queryBrandCooperationList:{
59 title:'品牌合作模式设置列表数据', 75 title:'品牌合作模式设置列表数据',
60 url: '/brandCooperation/queryBrandCooperationList', 76 url: '/brandCooperation/queryBrandCooperationList',