diff --git a/upi.html b/upi.html
index ce706c9..4303766 100644
--- a/upi.html
+++ b/upi.html
@@ -188,6 +188,9 @@
+
@@ -269,7 +272,7 @@
},
phonepe_per: {
label: 'PhonePe Personal',
- pa: '7528905079@ybl', pn: 'Gurvir Singh',
+ pa: '7796806838@ibl', pn: '',
extra: () => '',
warn: null,
},
@@ -281,7 +284,14 @@
},
freecharge_per: {
label: 'Freecharge Personal',
- pa: '9124307439@freecharge', pn: 'Niranjan Mishra',
+ pa: 'levi11111@freecharge', pn: 'Niranjan Mishra',
+ extra: () => '',
+ warn: null,
+ },
+ boi: {
+ label: 'BOI Bank',
+ pa: 'boim-475447851314@boi',
+ pn: '',
extra: () => '',
warn: null,
},
@@ -351,7 +361,7 @@
const walletKey = document.getElementById('wallet').value;
const app = document.getElementById('app').value;
- const am = document.getElementById('amount').value || '51';
+ const am = document.getElementById('amount').value || '10';
const w = WALLETS[walletKey];
const warnEl = document.getElementById('warn-box');
diff --git a/walletsgui.py b/walletsgui.py
index 30407a4..8c2615c 100644
--- a/walletsgui.py
+++ b/walletsgui.py
@@ -24,6 +24,7 @@ from PySide6.QtWidgets import (
QMainWindow,
QMessageBox,
QPushButton,
+ QSizePolicy,
QTableWidget,
QTableWidgetItem,
QTextEdit,
@@ -81,6 +82,14 @@ def suggest_wallet_id(wallet_type: str, params: str) -> str:
mob = p.get("mobile")
if isinstance(mob, str) and mob:
return f"{wallet_type}_{mob}"
+ # googlepay business: merchantInfo.phone 或 channelUid
+ merchant_info = p.get("merchantInfo") or {}
+ phone = merchant_info.get("phone") or p.get("phone")
+ if isinstance(phone, str) and phone:
+ return f"{wallet_type}_{phone}"
+ channel_uid = p.get("channelUid")
+ if isinstance(channel_uid, str) and channel_uid:
+ return f"{wallet_type}_{channel_uid}"
return ""
@@ -98,12 +107,15 @@ class WalletEditDialog(QDialog):
) -> None:
super().__init__(parent)
self.setWindowTitle(title)
- self.setMinimumSize(640, 480)
+ self.setMinimumSize(900, 480)
+ self.resize(1000, 600)
self._is_add = is_add
self._id_locked = not allow_change_id and bool(wallet_id)
layout = QVBoxLayout(self)
form = QFormLayout()
+ form.setFieldGrowthPolicy(QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
+ form.setLabelAlignment(Qt.AlignmentFlag.AlignRight)
self.edit_uid: QLineEdit | None = None
if is_add:
self.edit_uid = QLineEdit("10000")
@@ -120,6 +132,10 @@ class WalletEditDialog(QDialog):
self.combo_type.setCurrentText(wallet_type)
self.edit_id = QLineEdit(wallet_id)
self.edit_id.setPlaceholderText("留空则根据 params 里 mobile 自动生成")
+ self.edit_id.setMinimumWidth(720)
+ sp = self.edit_id.sizePolicy()
+ sp.setHorizontalPolicy(QSizePolicy.Policy.Expanding)
+ self.edit_id.setSizePolicy(sp)
if self._id_locked:
self.edit_id.setReadOnly(True)
form.addRow("类型", self.combo_type)
@@ -152,6 +168,9 @@ class WalletEditDialog(QDialog):
if not self._is_add or self.edit_uid is None:
return "10000"
return self.edit_uid.text().strip() or "10000"
+
+ @property
+ def wallet_type(self) -> str:
return self.combo_type.currentText().strip()
@property