Commit e32e5b91 by FE

pull master and solve

parents 81198c83 e6f1658f
......@@ -489,7 +489,7 @@ class RedPacket extends PureComponent {
http.post(
`${API['passport-api']}/m/personal/bindPhoneSendCode`,
{
area_code: num.padStart(4, '0'),
area_code: '00'+num,
phone_num: tel
}
).then(res => {
......@@ -575,7 +575,7 @@ class RedPacket extends PureComponent {
http.post(
`${API['passport-api']}/m/personal/bindPhone`,
{
area_code: num.padStart(4, '0'),
area_code: '00'+num,
phone_num: tel,
code: code,
type: 1,
......
......@@ -123,7 +123,7 @@ const formikConfig = {
phone_num: values.tel,
phone_code: values.veriCode,
mkey: getParam('mkey'),
area_code: props.country.num,
area_code: '00'+props.country.num,
plat: 5
}).then(res => {
const data = res.data
......
......@@ -87,7 +87,7 @@ class VeriCodeInput extends Component {
http.post(`${API['passport-api']}/quick_sms`, {
phone_num: tel || account,
action: action || 'login',
area_code: country.num,
area_code: '00'+country.num,
challenge,
checking
}).then(res => {
......
......@@ -123,7 +123,7 @@ const formikConfig = {
http.post(`${API['passport-api']}/check_phone_code`, {
phone: values.tel,
code: values.veriCode,
area_code: props.country.num
area_code: '00'+props.country.num
}).then(res => {
if (res.data.errno == 0) {
props.history.push('/passport/set-password', {from: props.location})
......
......@@ -133,7 +133,7 @@ const FormikConfig = {
props.quickLogin({
phone_num: values.tel,
phone_code: values.veriCode,
area_code: props.country.num
area_code: '00'+props.country.num
}).then(res => {
if (res.hasError) {
Toast.info(res.msg);
......
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