Commit 4b9520eb by 庄欣

fix bug

parent 4999aad6
......@@ -8,16 +8,13 @@ class PhotoValidator extends Validator
protected $validator = [
'uid' => 'required',
'pg_id' => 'required',
'cover' => 'required',
'extra_truing_price' => 'required',
'pg_id' => 'required',
'count' => 'required|min:1',
];
protected $message = [
'uid.required' => '发送的用户不能为空',
'extra_truing_price.required' => '请填写额外精修的单价',
'extra_truing_price.min' => '额外精修金额需为0或正整数',
'count.required' => '请填写选片数量',
'count.min' => '选片数量必须大于0',
];
......
......@@ -94,6 +94,4 @@ class Photo extends \Illuminate\Routing\Controller
return Response::error("选片未找到",HttpStatus::HttpNotFound);
}
}
}
\ No newline at end of file
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