From 6d7aa57dc2769a36a4f00241f7b0014be79bb54f Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期六, 11 二月 2023 13:57:29 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
index 2fdcb6d..0d4f9e4 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -715,17 +715,19 @@
             review.setBarcode(testMast.getBarcode());
             review.setChannel(testMast.getChannel().toString());
             review.setRequestTime(DateUtils.convert(new Date()));
-            if (testMast.getChannel()>=1 && testMast.getChannel()<=8){
+            if (testMast.getChannel()<1 || testMast.getChannel()>48){
+                log.error("閫氶亾鏈夎锛岃鏌ョ湅锛�");
+            } else if (testMast.getChannel()<=8){
                 renUrl=renUrl1;
-            }else if (testMast.getChannel()>=9 && testMast.getChannel()<=16){
+            }else if (testMast.getChannel()<=16){
                 renUrl=renUrl2;
-            }else if (testMast.getChannel()>=17 && testMast.getChannel()<=24){
+            }else if (testMast.getChannel()<=24){
                 renUrl=renUrl3;
-            }else if (testMast.getChannel()>=25 && testMast.getChannel()<=32){
+            }else if (testMast.getChannel()<=32){
                 renUrl=renUrl4;
-            }else if (testMast.getChannel()>=33 && testMast.getChannel()<=40){
+            }else if (testMast.getChannel()<=40){
                 renUrl=renUrl5;
-            }else if (testMast.getChannel()>=41 && testMast.getChannel()<=48){
+            }else if (testMast.getChannel()<=48){
                 renUrl=renUrl6;
             }
             return postMesData(renUrl,startUpTestPACK,review);
@@ -805,6 +807,8 @@
                 case "48":
                     renUrl=renUrl6;
                     break;
+                default:
+                    log.error("閫氶亾鏈夎锛岃鏌ョ湅锛�");
             }
             return postMesData(renUrl,suspendTestPACK,review);
         }catch (Exception e) {
@@ -831,6 +835,8 @@
             name="娴嬭瘯绯荤粺";
         }else if (URL.equals(renUrl6)){
             name="娴嬭瘯绯荤粺";
+        }else {
+            log.error("鏌ヨ杩炴帴澶辫触锛岃鏌ョ湅锛�");
         }
         if(combParam != null){
             String response = "";

--
Gitblit v1.9.1