沈斌
2016-12-25 dcb01752869456fecbee0ec0a5a0dcb8d3c39a4b
bugfix
1 files modified
16 ■■■■■ changed files
method.js 16 ●●●●● patch | view | raw | blame | history
method.js
@@ -359,13 +359,15 @@
            if(notice == null) {
                var userID = doc.userID;
                db.collection("users").find({"_id": userID}).limit(1).next(function(err, user){
                    global.configs[mac] = {
                        address: address,
                        location: location,
                        notice: {
                            tel: user.username,
                            email: user.email,
                            open_id: user.open_id
                    if(user) {
                        global.configs[mac] = {
                            address: address,
                            location: location,
                            notice: {
                                tel: user.username,
                                email: user.email,
                                open_id: user.open_id
                            }
                        }
                    }
                });