Commit 89fde2e2 authored by GuanHua's avatar GuanHua

feat:积分支付和余额支付支付密码加密

parent 659c3740
...@@ -10,6 +10,7 @@ import { GetMemberSecurityGetResponse } from '@/services/MemberApi' ...@@ -10,6 +10,7 @@ import { GetMemberSecurityGetResponse } from '@/services/MemberApi'
import { priceFormat } from '@/utils/numberFomat' import { priceFormat } from '@/utils/numberFomat'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { linkToUrl } from '../../utils' import { linkToUrl } from '../../utils'
import { encryptedByAES } from '@/utils/cryptoAes'
import styles from './index.less' import styles from './index.less'
interface BablancePayWayPropsType { interface BablancePayWayPropsType {
...@@ -84,7 +85,7 @@ const BablancePayWay: React.FC<BablancePayWayPropsType> = (props) => { ...@@ -84,7 +85,7 @@ const BablancePayWay: React.FC<BablancePayWayPropsType> = (props) => {
id: Number(orderId), id: Number(orderId),
paymentInformationId: Number(payInfo.paymentInformationId), paymentInformationId: Number(payInfo.paymentInformationId),
payTypeId: payInfo.paymentChannelsId, payTypeId: payInfo.paymentChannelsId,
payPassword: Number(payPassword) payPassword: encryptedByAES(payPassword)
} }
setConfirmLoading(true) setConfirmLoading(true)
//@ts-ignore //@ts-ignore
......
...@@ -9,6 +9,7 @@ import { Button, message, Spin } from 'antd' ...@@ -9,6 +9,7 @@ import { Button, message, Spin } from 'antd'
import { numFormat } from '@/utils/numberFomat' import { numFormat } from '@/utils/numberFomat'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { linkToUrl } from '../../utils' import { linkToUrl } from '../../utils'
import { encryptedByAES } from '@/utils/cryptoAes'
import styles from './index.less' import styles from './index.less'
interface PointPayWayPropsType { interface PointPayWayPropsType {
...@@ -86,7 +87,7 @@ const PointPayWay: React.FC<PointPayWayPropsType> = (props) => { ...@@ -86,7 +87,7 @@ const PointPayWay: React.FC<PointPayWayPropsType> = (props) => {
id: Number(orderId), id: Number(orderId),
paymentInformationId: Number(payInfo.paymentInformationId), paymentInformationId: Number(payInfo.paymentInformationId),
payTypeId: payInfo.paymentChannelsId, payTypeId: payInfo.paymentChannelsId,
payPassword: Number(payPassword) payPassword: encryptedByAES(payPassword)
} }
setConfirmLoading(true) setConfirmLoading(true)
//@ts-ignore //@ts-ignore
......
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