From 337c4a5af8daa0c2a334392409f08a4c09edb050 Mon Sep 17 00:00:00 2001
From: 付智勇 <fuzhiyong@efangtec.com>
Date: Mon, 28 Aug 2017 11:01:49 +0800
Subject: [PATCH] no message

---
 controller/userController.js | 2 ++
 1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/controller/userController.js b/controller/userController.js
index 5c5790f..89aa7ce 100644
--- a/controller/userController.js
+++ b/controller/userController.js
@@ -46,8 +46,10 @@ userController.prototype.addUser = async(ctx, next) =>{
             return status.paramError('password','不得小于6位');                
         }
     }
+    let id = await uuid.db32() 
 
     var user = {
+        id:id,
         loginName:params.loginName,
         password:pw.md5Pass,
         companyName:params.companyName,
--
libgit2 0.24.0