|
@@ -122,21 +122,20 @@ public class WxJsjpController extends BaseController {
|
|
|
|
|
|
if(isShare==1) {
|
|
|
//如果是合作驾校
|
|
|
- if (wxOrderDTO.getPhoneType() == 1) { //苹果
|
|
|
- Double priceApple = Double.parseDouble(values[3]) * 100; //订单总额
|
|
|
- int priceAppleInt = new Double(priceApple).intValue();
|
|
|
- order.setSchoolCommission(priceAppleInt);
|
|
|
- } else if (wxOrderDTO.getPhoneType() == 2) { //安卓
|
|
|
- Double priceAndroid = Double.parseDouble(values[2]) * 100; //订单总额
|
|
|
- int priceAndroidInt = new Double(priceAndroid).intValue();
|
|
|
- order.setSchoolCommission(priceAndroidInt);
|
|
|
+ if (wxOrderDTO.getPhoneType()!=null && wxOrderDTO.getPhoneType()==1) { //苹果
|
|
|
+ int priceApple = Integer.parseInt(values[3]) *100; //订单总额
|
|
|
+ order.setSchoolCommission(priceApple);
|
|
|
+ } else if (wxOrderDTO.getPhoneType()!=null && wxOrderDTO.getPhoneType()==2) { //安卓
|
|
|
+ int priceAndroid = Integer.parseInt(values[2]) * 100; //订单总额
|
|
|
+ order.setSchoolCommission(priceAndroid);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if("理论计时".equals(sysDictData.getDictLabel())){
|
|
|
+
|
|
|
+ if(sysDictData.getDictLabel().indexOf("计时")!=-1){
|
|
|
int isActiva = schActivationService.isSchActivation(gzptUserInfo.getOutId());
|
|
|
if(isActiva==1){
|
|
|
- throw new CustomException("该学员已激活,请勿重复操作");
|
|
|
+ throw new CustomException("该学员已激活,请退出APP后再重新获取套餐");
|
|
|
}
|
|
|
}
|
|
|
|