Commit 397985d0 by 姜雷

支付接口添加参数区域id和名称

parent 6b4386ed
{ {
"name": "wx-school-app-public", "name": "wx-school-app-public",
"version": "1.0.7", "version": "1.0.8",
"private": true, "private": true,
"description": "", "description": "",
"scripts": { "scripts": {
......
...@@ -18,6 +18,12 @@ type Params = { ...@@ -18,6 +18,12 @@ type Params = {
smaproPrepayConfigId: number; smaproPrepayConfigId: number;
// 预付配置id // 预付配置id
areaId: number;
// 区域id
areaName: string;
// 区域名称
}; };
type ResponseData = { type ResponseData = {
outTradeNo: string; outTradeNo: string;
......
...@@ -31,8 +31,14 @@ type DeviceInfoResponse = { ...@@ -31,8 +31,14 @@ type DeviceInfoResponse = {
// 位置id // 位置id
rates: RateInfoResponse[]; rates: RateInfoResponse[];
//是否纯蓝牙设备 1:是,0:否 // 是否纯蓝牙设备 1:是,0:否
isOnlyBluetooth: number; isOnlyBluetooth: number;
// 区域id
areaId: number;
// 区域名称
areaName: string;
}; };
type RateInfoResponse = { type RateInfoResponse = {
mark: string; mark: string;
......
...@@ -736,6 +736,8 @@ class Pay extends Component { ...@@ -736,6 +736,8 @@ class Pay extends Component {
serviceId: device.serviceId, serviceId: device.serviceId,
smaproCustomerId: customerId, smaproCustomerId: customerId,
smaproPrepayConfigId: payId, smaproPrepayConfigId: payId,
areaId: device.areaId,
areaName: device.areaName,
}) })
.then(res => { .then(res => {
console.log('res: ', res); console.log('res: ', res);
......
...@@ -18,6 +18,8 @@ export const INITIAL_STATE = { ...@@ -18,6 +18,8 @@ export const INITIAL_STATE = {
serviceId: 0, serviceId: 0,
serviceName: '', serviceName: '',
isOnlyBluetooth: 0, isOnlyBluetooth: 0,
areaId: 0,
areaName: '',
}; };
export const updateDeviceData = (entity: DeviceState): Action => ({ export const updateDeviceData = (entity: DeviceState): Action => ({
......
...@@ -21,4 +21,6 @@ export type Device = { ...@@ -21,4 +21,6 @@ export type Device = {
serviceId: number; serviceId: number;
serviceName: string; serviceName: string;
isOnlyBluetooth: number; isOnlyBluetooth: number;
areaId: number;
areaName: string;
}; };
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