shish 4 ani în urmă
părinte
comite
3a9ce4a237
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      app-hd/controllers/OrderController.php

+ 4 - 4
app-hd/controllers/OrderController.php

@@ -358,13 +358,13 @@ class OrderController extends BaseController
         $post['customId'] = $customId;
         $post['customId'] = $customId;
 
 
         if (isset($post['receiveMobile']) && !empty($post['receiveMobile'])) {
         if (isset($post['receiveMobile']) && !empty($post['receiveMobile'])) {
-            if (stringUtil::isMobile($post['receiveMobile'])) {
-                util::fail('请填写正的收花人手机号');
+            if (stringUtil::isMobile($post['receiveMobile']) == false) {
+                util::fail('请填写正的收花人手机号');
             }
             }
         }
         }
         if (isset($post['bookMobile']) && !empty($post['bookMobile'])) {
         if (isset($post['bookMobile']) && !empty($post['bookMobile'])) {
-            if (stringUtil::isMobile($post['bookMobile'])) {
-                util::fail('请填写正的订花人手机号');
+            if (stringUtil::isMobile($post['bookMobile']) == false) {
+                util::fail('请填写正的订花人手机号');
             }
             }
         }
         }