shish hace 1 año
padre
commit
11ffd81477
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app-ghs/controllers/CustomController.php

+ 2 - 1
app-ghs/controllers/CustomController.php

@@ -644,11 +644,12 @@ class CustomController extends BaseController
                 if (stringUtil::isMobile($name)) {
                     $where['mobile'] = $name;
                 } else {
-                    $where['mobile'] = ['like', $name];
                     $shop = $this->shop;
                     //如果是昆明的批发,搜索数字还是优先搜索客户名称,因为客户名称经常会编号
                     if($shop->pfLevel == 1){
                         $where['name'] = ['like', $name];
+                    }else{
+                        $where['mobile'] = ['like', $name];
                     }
                 }
             } else if (stringUtil::isLetter($name)) {