Commit 4999aad6 by 庄欣

fix bug

parent 0d87b1c0
......@@ -32,7 +32,7 @@ class Photo extends Model
$this->is_choose = 0;
$this->choose_count = 0;
$this->detail_count = 0;
$this->choose_time = "0000-00-00 00:00:00";
$this->choose_time = date("Y-m-d H:i:s",0);
$this->is_del = 1;
$this->cover = " ";
$this->create_time = date("Y-m-d H:i:s",time());
......
......@@ -9,7 +9,7 @@ class PhotoValidator extends Validator
'uid' => 'required',
'pg_id' => 'required',
'cover' => 'required',
'extra_truing_price' => 'required|numberic|min:0',
'extra_truing_price' => 'required',
'pg_id' => 'required',
'count' => 'required|min:1',
];
......@@ -17,7 +17,6 @@ class PhotoValidator extends Validator
protected $message = [
'uid.required' => '发送的用户不能为空',
'extra_truing_price.required' => '请填写额外精修的单价',
'extra_truing_price.numberic' => '额外精修的单价必须是数字',
'extra_truing_price.min' => '额外精修金额需为0或正整数',
'count.required' => '请填写选片数量',
'count.min' => '选片数量必须大于0',
......
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