best-unit 2.1.13 → 2.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "best-unit",
3
3
  "private": false,
4
- "version": "2.1.13",
4
+ "version": "2.1.15",
5
5
  "type": "module",
6
6
  "main": "dist/best-unit.cjs",
7
7
  "module": "dist/best-unit.js",
package/src/api/index.ts CHANGED
@@ -254,7 +254,7 @@ export const calculateBusinessExchangeRate = async (data: {
254
254
  return http()
255
255
  .post("/business_exchange_rate/calculate", {
256
256
  fund_balance_id: fundUnitParams.fundBalanceId,
257
- merchant_id: fundUnitParams.merchantId,
257
+ merchant_id: String(fundUnitParams.merchantId),
258
258
  biz_type: fundUnitParams.bizType,
259
259
  amount: data.amount,
260
260
  payment_currency: data.currency,
@@ -5,10 +5,7 @@ import { DatePicker } from "@/components/common/date-picker";
5
5
  import { Upload } from "@/components/common/upload";
6
6
  import { createOfflineRecharge } from "@/api";
7
7
  import { message } from "@/components/common/message";
8
- import {
9
- FundAllocationSection,
10
- useFundAllocation,
11
- } from "./fund-allocation";
8
+ import { FundAllocationSection, useFundAllocation } from "./fund-allocation";
12
9
 
13
10
  interface OfflinePaymentProps {
14
11
  onBack: () => void;
@@ -91,13 +88,13 @@ export function OfflinePayment({
91
88
  }));
92
89
  }
93
90
 
94
- if (!formState.payerName.trim()) {
95
- valid = false;
96
- setFormState((s) => ({
97
- ...s,
98
- payerNameError: t("请输入付款人名称"),
99
- }));
100
- }
91
+ // if (!formState.payerName.trim()) {
92
+ // valid = false;
93
+ // setFormState((s) => ({
94
+ // ...s,
95
+ // payerNameError: t("请输入付款人名称"),
96
+ // }));
97
+ // }
101
98
 
102
99
  if (!validateFundAllocation()) {
103
100
  valid = false;
@@ -222,7 +219,7 @@ export function OfflinePayment({
222
219
  {/* 付款人名称 */}
223
220
  <div style={theme.fieldSection}>
224
221
  <label style={theme.fieldLabel}>
225
- <span style={theme.required}>*</span>
222
+ {/* <span style={theme.required}>*</span> */}
226
223
  {t("付款人名称")}
227
224
  </label>
228
225
  <input