Authored by yyq

inviteCode

@@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
7 */ 7 */
8 'use strict'; 8 'use strict';
9 9
10 -const _ = require('lodash');  
11 const aes = require('./aes-pwd'); 10 const aes = require('./aes-pwd');
12 const api = global.yoho.API; 11 const api = global.yoho.API;
13 12
@@ -47,7 +46,7 @@ let regMobileAes = (area, mobile, password, code, shoppingKey, extParam)=> { @@ -47,7 +46,7 @@ let regMobileAes = (area, mobile, password, code, shoppingKey, extParam)=> {
47 46
48 if (extParam) { 47 if (extParam) {
49 if (extParam.inviteCode) { 48 if (extParam.inviteCode) {
50 - params.inviteCode = _.replace(extParam.inviteCode, /[^(0-9a-zA-Z)]/ig, ''); 49 + params.inviteCode = extParam.inviteCode;
51 } 50 }
52 } 51 }
53 52