|
@@ -26,9 +26,9 @@ class User extends Permissions
|
|
"nickname" => $user->nickname,
|
|
"nickname" => $user->nickname,
|
|
"head_pic" => $user->head_pic,
|
|
"head_pic" => $user->head_pic,
|
|
"sex" => $user->sex,
|
|
"sex" => $user->sex,
|
|
- "country" =>$user->country,
|
|
|
|
|
|
+ "country" => $user->country,
|
|
"province" => $user->province,
|
|
"province" => $user->province,
|
|
- "city" =>$user->city
|
|
|
|
|
|
+ "city" => $user->city
|
|
];
|
|
];
|
|
$this->json_success('success', $info);
|
|
$this->json_success('success', $info);
|
|
}
|
|
}
|
|
@@ -44,12 +44,24 @@ class User extends Permissions
|
|
['sex|性别', 'number|in:1,2'],
|
|
['sex|性别', 'number|in:1,2'],
|
|
['phone|电话', 'require|max:50'],
|
|
['phone|电话', 'require|max:50'],
|
|
['id_card|身份证', 'max:50'],
|
|
['id_card|身份证', 'max:50'],
|
|
- ['childs_num|子女数量', 'number'],
|
|
|
|
|
|
+ ['childs_num|子女数量', 'number|in:1,2,3'],
|
|
['problem_desc|问题描述', 'max:200'],
|
|
['problem_desc|问题描述', 'max:200'],
|
|
['requirement_desc|需求描述', 'max:200'],
|
|
['requirement_desc|需求描述', 'max:200'],
|
|
['appointment_ticket_id', 'require|number'],
|
|
['appointment_ticket_id', 'require|number'],
|
|
['appointment_period', 'require|number|in:1,2,3'],
|
|
['appointment_period', 'require|number|in:1,2,3'],
|
|
['appointment_time|预约时间段', 'require|dateFormat:H:i:s - H:i:s'],
|
|
['appointment_time|预约时间段', 'require|dateFormat:H:i:s - H:i:s'],
|
|
|
|
+ ['city|来自城市', 'max:50'],
|
|
|
|
+ ['job|职业', 'max:50'],
|
|
|
|
+ ['education_level|受教育程度', 'number|in:0,1,2,3,4'],
|
|
|
|
+ ['home_address|家庭住址', 'max:255'],
|
|
|
|
+ ['marriage|婚姻情况', 'number|in:0,1,2'],
|
|
|
|
+ ['problem_type|咨询问题类别', 'number|in:0,1,2,3,4,5'],
|
|
|
|
+ ['childs_age1|一孩年龄', 'number'],
|
|
|
|
+ ['childs_age2|二孩年龄', 'number'],
|
|
|
|
+ ['childs_age3|三孩年龄', 'number'],
|
|
|
|
+ ['childs_sex1|一孩性别', 'number'],
|
|
|
|
+ ['childs_sex2|二孩性别', 'number'],
|
|
|
|
+ ['childs_sex3|三孩性别', 'number'],
|
|
]);
|
|
]);
|
|
if (!$validate->check($post)) {
|
|
if (!$validate->check($post)) {
|
|
$this->json_error('提交失败:' . $validate->getError());
|
|
$this->json_error('提交失败:' . $validate->getError());
|