@@ -1,3 +1,5 @@
npm-debug.log
node_modules
-coverage
+coverage
+package-lock.json
+public/img/
@@ -72,7 +72,7 @@ const shopSchema = new mongoose.Schema({
}],
});
-shopSchema.index({ id: 1 });
+shopSchema.index({ id: 1 }); //primary_key 主键
const Shop = mongoose.model('Shop', shopSchema);
@@ -8,7 +8,7 @@ mongoose.Promise = global.Promise;
const db = mongoose.connection;
db.once('open' ,() => {
- console.log('连接数据库成功')
+ console.log('连接数据库成功');
})
db.on('error', function(error) {
@@ -23,7 +23,7 @@ class AddressComponent extends BaseComponent {
const ipArr = ip.split(':');
ip = ipArr[ipArr.length -1];
if (process.env.NODE_ENV == 'development') {
- ip = '116.226.184.83';
+ ip = '220.249.123.162';
}
try{
let result;