@xuda.io/account_module 1.2.83 → 1.2.85
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/index.js +15 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1402,7 +1402,7 @@ exports.validate_account_topup = async function (uid, items = []) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
let topup = 0;
|
|
1404
1404
|
for (const item of items) {
|
|
1405
|
-
topup += get_prices(item);
|
|
1405
|
+
topup += get_prices(uid, item);
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
// if ((!data?.customer_obj?.default_source, { billing_problem: true, topup })) {
|
|
@@ -1480,41 +1480,41 @@ const get_prices = function (uid, item) {
|
|
|
1480
1480
|
let price;
|
|
1481
1481
|
|
|
1482
1482
|
switch (item) {
|
|
1483
|
-
case user_group:
|
|
1484
|
-
case pwa:
|
|
1485
|
-
case preview:
|
|
1486
|
-
case android:
|
|
1487
|
-
case ios:
|
|
1488
|
-
case macos:
|
|
1489
|
-
case emitter:
|
|
1483
|
+
case "user_group":
|
|
1484
|
+
case "pwa":
|
|
1485
|
+
case "preview":
|
|
1486
|
+
case "android":
|
|
1487
|
+
case "ios":
|
|
1488
|
+
case "macos":
|
|
1489
|
+
case "emitter":
|
|
1490
1490
|
price = _conf.PRICE_OBJ.deployments[item];
|
|
1491
1491
|
break;
|
|
1492
1492
|
|
|
1493
|
-
case drive_ocr:
|
|
1493
|
+
case "drive_ocr":
|
|
1494
1494
|
price = _conf.PRICE_OBJ.drive_ocr_per_month;
|
|
1495
1495
|
break;
|
|
1496
1496
|
|
|
1497
|
-
case auto_backup:
|
|
1497
|
+
case "auto_backup":
|
|
1498
1498
|
price = _conf.PRICE_OBJ.auto_backup_per_month;
|
|
1499
1499
|
break;
|
|
1500
1500
|
|
|
1501
|
-
case deployment_offline:
|
|
1501
|
+
case "deployment_offline":
|
|
1502
1502
|
price = _conf.PRICE_OBJ.deployment_offline_per_month;
|
|
1503
1503
|
break;
|
|
1504
1504
|
|
|
1505
|
-
case xuda_subdomain:
|
|
1505
|
+
case "xuda_subdomain":
|
|
1506
1506
|
price = _conf.PRICE_OBJ.xuda_subdomain_per_month;
|
|
1507
1507
|
break;
|
|
1508
1508
|
|
|
1509
|
-
case custom_domain:
|
|
1509
|
+
case "custom_domain":
|
|
1510
1510
|
price = _conf.PRICE_OBJ.custom_domain_per_month;
|
|
1511
1511
|
break;
|
|
1512
1512
|
|
|
1513
|
-
case user_monitor:
|
|
1513
|
+
case "user_monitor":
|
|
1514
1514
|
price = _conf.PRICE_OBJ.user_monitor_per_month;
|
|
1515
1515
|
break;
|
|
1516
1516
|
|
|
1517
|
-
case branding:
|
|
1517
|
+
case "branding":
|
|
1518
1518
|
price = _conf.PRICE_OBJ.branding_per_month;
|
|
1519
1519
|
break;
|
|
1520
1520
|
|