From 67bf3e1b0d6562cf8bb9762ceea666ffe0a85622 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Fri, 13 May 2022 15:33:43 +0800 Subject: [PATCH] setter --- app/validate/User.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/validate/User.php b/app/validate/User.php index e4235d6..d2f0a0c 100644 --- a/app/validate/User.php +++ b/app/validate/User.php @@ -12,9 +12,8 @@ class User extends Validate 'nick_name|昵称' => 'max:100', 'avatar_url|头像' => 'max:250', 'gender|性别' => 'number', - 'lat|位置' => 'require|>:0', - 'lng|位置' => 'require|>:0', - +// 'lat|位置' => '>:0', +// 'lng|位置' => '>:0', ]; protected $message = [ 'lat.require' => '请授权位置信息',