修改uv冷转印

This commit is contained in:
2025-06-13 10:22:19 +08:00
parent fd1ac7132b
commit 844f622d3e
2 changed files with 22 additions and 15 deletions
+12 -7
View File
@@ -3440,20 +3440,25 @@ public class PriceUtils {
return price;
}
public double CalculatePrice(List<String> craft_list, double count, int coNumber) {
public double CalculatePrice(List<String> craft_list, double count, int coNumber, double countNum) {
if (craft_list.contains("烫画")) {
return (int) count * 120;
}
double price = 0;
if (craft_list.contains("冷转印")) {
if (count <= 5) {
price = 260;
} else if (count < 100) {
price = 14 * count + 200;
if (countNum == 1) {
price = 260 * Math.ceil(count / countNum) + (coNumber - 1) * 100;
} else {
price = 12 * count;
if (count <= 5) {
price = 260;
} else if (count < 100) {
price = 14 * count + 200;
} else {
price = 12 * count;
}
price = price + (coNumber - 1) * 100;
}
price = price + (coNumber - 1) * 100;
}
return price;