fix: avoid validator method name collision
This commit is contained in:
@@ -28,7 +28,7 @@ class CommunityPostValidate extends BaseValidate
|
||||
'like_count' => 'require|integer|egt:0|elt:4294967296',
|
||||
'comment_count' => 'require|integer|egt:0|elt:4294967296',
|
||||
'share_count' => 'require|integer|egt:0|elt:4294967296',
|
||||
'ext' => 'checkExt',
|
||||
'ext' => 'checkExtJson',
|
||||
'status' => 'require|in:0,1,2',
|
||||
'is_top' => 'require|in:0,1',
|
||||
'is_hot' => 'require|in:0,1',
|
||||
@@ -196,7 +196,7 @@ class CommunityPostValidate extends BaseValidate
|
||||
return true;
|
||||
}
|
||||
|
||||
public function checkExt($value)
|
||||
public function checkExtJson($value)
|
||||
{
|
||||
if (is_array($value) || trim((string) $value) === '') {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user