wugg 6 tháng trước cách đây
mục cha
commit
982002a36d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/cxinv/controller/Payinv.php

+ 2 - 2
app/cxinv/controller/Payinv.php

@@ -101,9 +101,9 @@ class Payinv extends Base{
     }
 
     public function info(){
-        $params = $this->request->param(["hpNo"=>""]);
+        $params = $this->request->param(["hpNo"=>""],"post","trim");
         $valid= Validate::rule([
-            'hpNo' => 'require|integer'
+            'hpNo' => 'require|max:255'
         ]);
         if (!$valid->check($params))return error($valid->getError());
         $info = $this->model->alias('a')