Authored by shixiang

去掉测试用的debug请求参数 review -叶弯弯

... ... @@ -95,7 +95,7 @@ export default class ModifyPasswordContainer extends Component {
onModifySubmitPress(){
if(this.props.user.password.repeat==this.props.user.password.new){
this.props.actions.pwdModifySubmit(this.props.user.profile.pid,this.props.user.password.old,this.props.user.password.new);
this.props.actions.pwdModifySubmit(this.props.user.profile.pid,this.props.user.password.old,this.props.user.password.new,this.props.user.password.repeat);
}else{
Alert.alert(
'密码不相同'
... ...
... ... @@ -193,11 +193,11 @@ export function pwdModifyRepeat(pwd) {
};
}
export function pwdModifySubmit(pid, oldPwd, newPwd) {
export function pwdModifySubmit(pid, oldPwd, newPwd,newPwdConfirm) {
let userService = new UserService();
return dispatch => {
dispatch(loginRequest());
return userService.modifyPassword(pid, oldPwd, newPwd)
return userService.modifyPassword(pid, oldPwd, newPwd,newPwdConfirm)
.then(function (json) {
Alert.alert(
'修改成功',
... ...
... ... @@ -18,7 +18,7 @@ export default class UserService {
account: account,
password: password,
method:'app.shops.login',
debug:'XYZ',
}
})
.then(data => {
... ... @@ -29,16 +29,16 @@ export default class UserService {
});
}
async modifyPassword(pid, oldPwd,newPwd) {
async modifyPassword(pid, oldPwd,newPwd,newPwdConfirm) {
return this.api.get({
url: '/gateway',
body: {
pid: pid,
oldPwd: oldPwd,
newPwd:newPwd,
newPwdConfirm:newPwd,
newPwdConfirm:newPwdConfirm,
method:'app.shops.changePwd',
debug:'XYZ',
}
})
.then(data => {
... ...