@shun-js/user 0.3.7 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shun-js/user",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "user",
5
5
  "keywords": [
6
6
  "shun.js",
@@ -34,5 +34,5 @@
34
34
  "access": "public",
35
35
  "registry": "https://registry.npmjs.org/"
36
36
  },
37
- "gitHead": "4a0ba2355adb56500655df5d1c09a41b8ee9a1a3"
37
+ "gitHead": "60f6356fdb876d69ce8aee9a143c3e06cff23c0c"
38
38
  }
@@ -43,7 +43,7 @@ exports.addUserItem = async (req, res, mobile) => {
43
43
  req.logger.info(methodName, 'encryptPassword', encryptPassword);
44
44
 
45
45
  // add user
46
- const addUserItemRes = await req.db.query(sql.addUserItem, [mobile, encryptPassword]);
46
+ const addUserItemRes = await req.db.query(sql.addUserItem, [mobile, encryptPassword, req.body.from || 'null']);
47
47
 
48
48
  // userItem
49
49
  const userItem = {
@@ -13,7 +13,7 @@ exports.addUserItem = `
13
13
  insert into
14
14
  t_user_item
15
15
  values
16
- (null, ?, ?, now(), '0')
16
+ (null, ?, ?, ?, now(), '0')
17
17
  `;
18
18
 
19
19
  exports.getUserItemById = `