Browse Source

Merge branch 'wugg-dev' of wugg/phpstock into version1.5

wugg 2 years ago
parent
commit
2dc85724f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Customar.php

+ 1 - 1
app/admin/controller/Customar.php

@@ -25,7 +25,7 @@ class Customar extends BaseController
             return error_show(1005, "参数token不能为空");
         }
         $companyNo = makeNo("KH");
-        $companyName = isset($this->post['companyName']) && $this->post['companyName'] !== "" ? $this->post['companyName'] : "";
+        $companyName = isset($this->post['companyName']) && $this->post['companyName'] !== "" ? trim($this->post['companyName']): "";
         if ($companyName == "") {
             return error_show(1002, "参数companyName不能为空");
         }