修改冷转印烫画价格
This commit is contained in:
@@ -3557,22 +3557,29 @@ public class PriceUtils {
|
||||
}
|
||||
|
||||
|
||||
public double CalculatePrice(List<String> craft_list, double count, int coNumber, double countNum) {
|
||||
public double CalculatePrice(List<String> craft_list, double count, int coNumber, double countNum, double area) {
|
||||
if (craft_list.contains("烫画")) {
|
||||
return (int) count * 120;
|
||||
double basePrice = 0;
|
||||
area = area / 10000;
|
||||
if (area < 7.5) {
|
||||
basePrice = 90;
|
||||
} else {
|
||||
basePrice = 70;
|
||||
}
|
||||
return Math.max(Math.ceil(area * basePrice), 50);
|
||||
}
|
||||
double price = 0;
|
||||
if (craft_list.contains("冷转印")) {
|
||||
double banfei = 200;
|
||||
if (countNum > 1) {
|
||||
price = 260 * countNum;
|
||||
price = 200 * countNum;
|
||||
banfei = 0;
|
||||
count = Math.abs(count - countNum);
|
||||
|
||||
}
|
||||
if (count > 0) {
|
||||
if (count <= 5) {
|
||||
price += 260;
|
||||
price += 200;
|
||||
} else if (count < 100) {
|
||||
price += 14 * count + banfei;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user