|
@@ -78,7 +78,7 @@ class UserControllerValidate extends BaseValidate
|
|
|
{
|
|
|
$validate = Validator::make($data,
|
|
|
[
|
|
|
- "amount"=>"required|integer|min:100",
|
|
|
+ "amount"=>"required|integer",
|
|
|
]
|
|
|
);
|
|
|
if($validate->fails()){
|
|
@@ -86,6 +86,10 @@ class UserControllerValidate extends BaseValidate
|
|
|
$this->setError($validate->errors()->first());
|
|
|
return false;
|
|
|
}
|
|
|
+ if($data["amount"] < 100){
|
|
|
+ $this->setError("提现金额不能小于1元");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
|