Commit fc51932f by 庄欣

fix bug

parent 4b5664af
...@@ -15,7 +15,6 @@ class ValidatorBase extends Validator ...@@ -15,7 +15,6 @@ class ValidatorBase extends Validator
public function validate(array $post) public function validate(array $post)
{ {
self::$_validator = self::make($post,$this->validator,$this->message); self::$_validator = self::make($post,$this->validator,$this->message);
file_put_contents("/var/www/log1.txt",json_encode($post));
if (self::$_validator->passes()) { if (self::$_validator->passes()) {
if (method_exists($this, "custom_validate")) { if (method_exists($this, "custom_validate")) {
$res = call_user_func_array([$this, "custom_validate"], [$post]); $res = call_user_func_array([$this, "custom_validate"], [$post]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment