周箭河 5 rokov pred
rodič
commit
44395c9b60

+ 1 - 1
src/main/java/com/ym/mec/collectfee/controller/YqPayController.java

@@ -614,7 +614,7 @@ public class YqPayController extends BaseController {
                 schoolService.sendPayMsg(applyInfo.getPatriarchPhone(), order.getAmount().toString());
                 return;
             }
-            if (order.getPromotionType().equals(1)) {
+            if (order.getPromotionType() != null && order.getPromotionType().equals(1)) {
                 RenewBean renewBean = new RenewBean();
                 renewBean.setUserId(order.getUserId());
                 renewBean.setType(101);