diff --git a/cellsysGroup.js b/cellsysGroup.js index 6795a30..bfa4eb5 100644 --- a/cellsysGroup.js +++ b/cellsysGroup.js @@ -147,7 +147,7 @@ class CellsysGroup { _membersParam.push({ _realname: memberObj.realName, _mobile: memberObj.mobile, - _gender: memberObj.gender, + _gender: String(memberObj.gender), _email: memberObj.email, _member_type_name: memberObj.typeName ? memberObj.typeName @@ -210,5 +210,4 @@ class CellsysGroup { } } - -export default CellsysGroup +export default CellsysGroup; diff --git a/cellsysOrg.js b/cellsysOrg.js index 7584593..52118db 100644 --- a/cellsysOrg.js +++ b/cellsysOrg.js @@ -241,7 +241,7 @@ class CellsysOrg { editTask.addParam('_username', params.userName); editTask.addParam('_realname', params.realName); editTask.addParam('_email', params.email); - editTask.addParam('_gender', params.gender); + editTask.addParam('_gender', String(params.gender)); editTask.addParam('_birthday', params.birthday); editTask.addParam('_avatar', params.avatar); editTask.addParam('_is_username', 0);