@bee-hole/server 1.83.5 → 1.83.6
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/main.exe +0 -0
- package/mainD +0 -0
- package/package.json +1 -1
- package/resource/public/html/h5pay.html +26 -17
- package/version +1 -1
package/main.exe
CHANGED
|
Binary file
|
package/mainD
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
|
|
183
183
|
<script>
|
|
184
184
|
var debug = false;
|
|
185
|
-
const httpurl = 'http://
|
|
185
|
+
const httpurl = 'http://beehole.tlyoupin.com';
|
|
186
186
|
const translations = {
|
|
187
187
|
'zh-CN': {
|
|
188
188
|
paymentDetails: '支付详情',
|
|
@@ -193,6 +193,7 @@
|
|
|
193
193
|
selectCurrency: '选择货币',
|
|
194
194
|
paymentProcessing: '正在使用 {method} 进行 {currency} 支付',
|
|
195
195
|
loadingFailed: '加载支付方式失败,请刷新页面重试。',
|
|
196
|
+
noPayMethod: '暂无可用支付方式',
|
|
196
197
|
creditCard: '信用卡',
|
|
197
198
|
debitCard: '借记卡',
|
|
198
199
|
bankTransfer: '银行转账',
|
|
@@ -211,6 +212,7 @@
|
|
|
211
212
|
selectCurrency: 'Select Currency',
|
|
212
213
|
paymentProcessing: 'Processing payment with {method} in {currency}',
|
|
213
214
|
loadingFailed: 'Failed to load payment methods. Please refresh the page and try again.',
|
|
215
|
+
noPayMethod: 'No payment methods available',
|
|
214
216
|
creditCard: 'Credit Card',
|
|
215
217
|
debitCard: 'Debit Card',
|
|
216
218
|
bankTransfer: 'Bank Transfer',
|
|
@@ -314,23 +316,30 @@
|
|
|
314
316
|
})
|
|
315
317
|
}).then(response => response.json())
|
|
316
318
|
.then(result => {
|
|
317
|
-
if (result && result.data
|
|
319
|
+
if (result && result.data) {
|
|
318
320
|
// this.paymentList = result.data.list
|
|
319
321
|
// this.initPaymenthods();
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
if(result.data.
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
"description": translate('balance'),
|
|
326
|
-
"logo": "",
|
|
327
|
-
"balance": result.data.balance_currency + result.data.balance
|
|
328
|
-
});
|
|
322
|
+
|
|
323
|
+
if(result.data && result.data.balance){
|
|
324
|
+
if(!result.data.list){
|
|
325
|
+
// 向第一个追加余额支付
|
|
326
|
+
result.data.list = [];
|
|
329
327
|
}
|
|
328
|
+
result.data.list.unshift({
|
|
329
|
+
"pay_way_id": 0,
|
|
330
|
+
"description": translate('balance'),
|
|
331
|
+
"logo": "",
|
|
332
|
+
"balance": result.data.balance_currency + result.data.balance
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
if (!result.data.list || result.data.list.length == 0) {
|
|
337
|
+
showNotification(translate('noPayMethod'), 'error');
|
|
338
|
+
return;
|
|
330
339
|
}
|
|
331
340
|
resolve(result.data.list);
|
|
332
341
|
} else {
|
|
333
|
-
if (result && result.
|
|
342
|
+
if (result && result.code != 0) {
|
|
334
343
|
// this.ErrMsg = result.message;
|
|
335
344
|
// showErrText(result.message);
|
|
336
345
|
showNotification(result.message, 'error');
|
|
@@ -485,11 +494,11 @@
|
|
|
485
494
|
resolve({ url: qrCode, type: 'qrCode' });
|
|
486
495
|
// this.lunxunOrder();
|
|
487
496
|
}
|
|
488
|
-
if (payWayId === '' && result.
|
|
489
|
-
resolve(
|
|
497
|
+
if (payWayId === '' && result.code === 0){
|
|
498
|
+
resolve(result);
|
|
490
499
|
}
|
|
491
500
|
} else {
|
|
492
|
-
if (result && result.
|
|
501
|
+
if (result && result.code != 0) {
|
|
493
502
|
// that.ErrMsg = result.message;
|
|
494
503
|
// console.log('result.message', result.message);
|
|
495
504
|
// showErrText(result.message);
|
|
@@ -533,7 +542,7 @@
|
|
|
533
542
|
} else if (res.status === 'PAID') {
|
|
534
543
|
window.close();
|
|
535
544
|
}else{
|
|
536
|
-
if(res.
|
|
545
|
+
if(res && res.code != 0){
|
|
537
546
|
// showErrText(res.message);
|
|
538
547
|
showNotification(result.message, 'error');
|
|
539
548
|
}
|
|
@@ -665,7 +674,7 @@
|
|
|
665
674
|
if(payWayId+'' === '0'){
|
|
666
675
|
// 余额支付
|
|
667
676
|
const res = await Pay(selectedCurrency, '', '余额');
|
|
668
|
-
if (res.
|
|
677
|
+
if (res.code === 0) {
|
|
669
678
|
showNotification(translate('paySuccess'), 'success');
|
|
670
679
|
setTimeout(() => {
|
|
671
680
|
window.close();
|
package/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v1.83.
|
|
1
|
+
v1.83.6
|