From 59d4cabb7983655c6f8202642d8d23188abbb99f Mon Sep 17 00:00:00 2001 From: zhangds Date: Sun, 24 Apr 2022 11:00:29 +0800 Subject: [PATCH] =?UTF-8?q?1)=20=E4=BF=AE=E5=A4=8D=E5=85=91=E6=8D=A2?= =?UTF-8?q?=E7=BC=96=E8=BE=91=EF=BC=8C=E6=97=A0=E6=B3=95=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/edit/edit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index c67745ee..5539fb15 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -243,7 +243,7 @@ export default class exchangedit extends React.Component { getReseller(req.plan.reseller_id).then((res) => { handelResponse(res, (req1, msg) => { console.log("req ==>1", req1); - req.receive_email = req1.contact_email[0]; + req1.receive_email = req1.contact_email[0]; this.setState({ reseller: req1 }); this.setState({ phone_list: req1.contact_phone }); this.setState({ email_list: req1.contact_email }); @@ -443,8 +443,9 @@ export default class exchangedit extends React.Component { let data = this.buildData(); let approval_id = sessionStorage.getItem("approval_id"); + console.log("approval_id ==>", approval_id); - if (approval_id <= 0) { + if (Number(approval_id) <= 0) { getIsRequireApproval(code_batch_id, data).then((res) => { handelResponse( res,