From 0b1354ff8705b405833c3c1349cfbc92902f4c4e Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 20 Jul 2019 21:05:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86=E8=AE=A4?= =?UTF-8?q?=E8=AF=81-=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/modal/RealNameCertificationModal.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/public/react/src/modules/user/modal/RealNameCertificationModal.js b/public/react/src/modules/user/modal/RealNameCertificationModal.js index 6c92423cd..b9a0cf7d0 100644 --- a/public/react/src/modules/user/modal/RealNameCertificationModal.js +++ b/public/react/src/modules/user/modal/RealNameCertificationModal.js @@ -125,24 +125,18 @@ class RealNameCertificationModal extends Component{ const { course_lists, checkBoxValues, searchValue, loading, imageUrl, imageUrl2 } = this.state const { moduleName } = this.props const { getFieldDecorator } = this.props.form; - const uploadProps = { - name: 'file', - multiple: true, - showUploadList: false, - action: getUploadActionUrl(), - className: 'idPic-uploader first_uploader', - onChange: this.handleChange, - }; - + let {certification}=this.props; + const uploadProps2 = { - name: 'file', + name: 'image', + data:{type:certification == 1 ? "real_name" : "professional"}, multiple: true, showUploadList: false, - action: getUploadActionUrl(), + // https://newweb.educoder.net + action: `/api/users/accounts/${this.props.current_user.login}/auth_attachment.json`, className: 'idPic-uploader', onChange: this.handleChange2, }; - let {certification}=this.props; return(