|
@@ -7,6 +7,7 @@ import com.min.util.CommonUtil;
|
|
|
import com.minpay.common.bean.User;
|
|
|
import com.minpay.common.exception.BusinessCodeException;
|
|
|
import com.minpay.common.service.IOrderService;
|
|
|
+import com.minpay.common.service.IPropertiesService;
|
|
|
import com.minpay.common.service.IPublicService;
|
|
|
import com.minpay.common.util.DateUtil;
|
|
|
import com.minpay.db.table.mapper.*;
|
|
@@ -147,30 +148,22 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
// }
|
|
|
proPrice = String.valueOf(proInf.getSallPrice());
|
|
|
}else if("01".equals(proType)){
|
|
|
- //proNumsAndPayNum = CommonUtil.multiply(proNumsAndPayNum, payNumber);
|
|
|
-
|
|
|
- /*if(!commonutil.isempty(map.get("proprice"))){
|
|
|
- //抽奖价格不为空的用抽奖价
|
|
|
- proprice = string.valueof(map.get("proprice"));
|
|
|
- }else{
|
|
|
- //抽奖商品用游戏价
|
|
|
- proprice = string.valueof(proinf.getgameprice());
|
|
|
- }*/
|
|
|
-
|
|
|
String paymentType = equInf.getPaymentType();
|
|
|
String paymentAmt = equInf.getPayment();
|
|
|
if(CommonUtil.isEmpty(paymentType) || CommonUtil.isEmpty(paymentAmt) ){
|
|
|
throw new MINBusinessException("机器未设置游戏金额,请联系商户");
|
|
|
}
|
|
|
-
|
|
|
+ String testVel = Service.lookup(IPropertiesService.class)
|
|
|
+ .getSystemProperties().get("TEST").getKey();
|
|
|
if("00".equals(paymentType)){//随机
|
|
|
Random aa = new Random();
|
|
|
int randomNum = getRandom(85,115);
|
|
|
Log.info("=============详情编号:"+detailId+"随机数(比例):"+randomNum);
|
|
|
String bili = CommonUtil.divide(String.valueOf(randomNum),"100");
|
|
|
- proPrice = CommonUtil.multiply(payType,bili);
|
|
|
+ proPrice = CommonUtil.divide(CommonUtil.multiply(payType,bili),testVel);
|
|
|
|
|
|
}else if("01".equals(paymentType)){ //固定
|
|
|
+ proPrice = CommonUtil.divide(payType,testVel);
|
|
|
proPrice = payType;
|
|
|
}
|
|
|
|