Commit 46c68fed authored by liuyuzhen's avatar liuyuzhen

保存用户信息错误

parent 567a582c
......@@ -177,6 +177,7 @@ class MemberServiceModel extends \Business\AbstractModel
public function saveMemberInfo($where,$memberId){
$memberDao=\DAO\MemberModel::getInstance(\Our\DbNameConst::masterDBConnectName);
$data = $memberDao->getValidMember($where);
$result = $memberDao->saveInfo($data,$memberId);
return $result;
}
......
......@@ -283,9 +283,10 @@ class MemberModel extends \DAO\AbstractModel
if (!($where['memberSex'] && in_array($where['memberSex'], array(\Our\ApiConst::woman, \Our\ApiConst::man)))) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::wrongMemberSex);
}
unset($where['key']);
$where = \Our\Common::convertHump($where);
return $where;
$memberInfo['memberName'] = $where['memberName'];
$memberInfo['memberSex'] = $where['memberSex'];
$memberInfo = \Our\Common::convertHump($memberInfo);
return $memberInfo;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment