Commit 9d16899b by 姜雷

Merge branch 'develop' into 'test'

修改支付接口设备编码传入原始设备编码 See merge request !1
parents 58f2d962 0fcb8bb3
...@@ -179,6 +179,7 @@ class Index extends Component { ...@@ -179,6 +179,7 @@ class Index extends Component {
} }
if (deviceInfoResponse) { if (deviceInfoResponse) {
updateDeviceData(deviceInfoResponse); updateDeviceData(deviceInfoResponse);
updateDeviceData({originCode: equipmentNum});
} else { } else {
resetDeviceData(); resetDeviceData();
} }
......
...@@ -61,7 +61,7 @@ class Pay extends Component { ...@@ -61,7 +61,7 @@ class Pay extends Component {
const { payId } = this.state; const { payId } = this.state;
if (payId) { if (payId) {
getPayOrder({ getPayOrder({
equipmentNum: device.code, equipmentNum: device.originCode,
equipmentPos: device.position, equipmentPos: device.position,
payType: '2', payType: '2',
serviceId: device.serviceId, serviceId: device.serviceId,
......
...@@ -162,6 +162,7 @@ class ScanEnter extends Component { ...@@ -162,6 +162,7 @@ class ScanEnter extends Component {
} }
if (deviceInfoResponse) { if (deviceInfoResponse) {
updateDeviceData(deviceInfoResponse); updateDeviceData(deviceInfoResponse);
updateDeviceData({originCode: equipmentNum});
} else { } else {
resetDeviceData(); resetDeviceData();
} }
......
import Action from '../../types/Store/Actions'; import Action from '../../types/Store/Actions';
import { Device } from '../..//types/Device/Device'; import { Device } from '../../types/Device/Device';
export type DeviceState = StoreState<Device>; export type DeviceState = StoreState<Device>;
export const INITIAL_STATE = { export const INITIAL_STATE = {
originCode: '',
code: '', code: '',
isCurrentUserUsed: 0, isCurrentUserUsed: 0,
isOnline: 0, isOnline: 0,
......
...@@ -3,6 +3,7 @@ export type Rate = { ...@@ -3,6 +3,7 @@ export type Rate = {
name: string; name: string;
}; };
export type Device = { export type Device = {
originCode: string,
code: string; code: string;
isCurrentUserUsed: number; isCurrentUserUsed: number;
isOnline: number; isOnline: number;
......
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