...
|
...
|
@@ -603,7 +603,8 @@ class IndexController extends RestBaseController |
|
|
* @param name:work_content type:int require:1 other: desc:工作内容
|
|
|
* @param name:select_time type:int require:1 other: desc:选择日期[{"date":"2018-01-02","time":"18:01"},{"date":"2018-01-02","time":"18:01"}]
|
|
|
* @param name:apply_stay type:int require:1 other: desc:申请入住[{"date":"2018-01-02","idcard":"123456"},{"date":"2018-01-02","idcard":"123456"}]
|
|
|
* @param name:apply_food type:int require:1 other: desc:申请用餐[{"date":"2018-01-02","time":"18:01"},{"date":"2018-01-02","time":"18:01"}]
|
|
|
* @param name:apply_lunch_food type:int require:1 other: desc:申请午餐[{"date":"2018-01-02"},{"date":"2018-01-02"}]
|
|
|
* @param name:apply_dinner_food type:int require:1 other: desc:申请晚餐[{"date":"2018-01-02"},{"date":"2018-01-02"}]
|
|
|
*
|
|
|
*/
|
|
|
public function applyJoin(){
|
...
|
...
|
@@ -628,6 +629,9 @@ class IndexController extends RestBaseController |
|
|
$apply_stay=html_entity_decode(htmlspecialchars_decode(input('apply_stay')));
|
|
|
$apply_food=html_entity_decode(htmlspecialchars_decode(input('apply_food')));
|
|
|
|
|
|
$apply_lunch_food=html_entity_decode(htmlspecialchars_decode(input('apply_lunch_food')));
|
|
|
$apply_dinner_food=html_entity_decode(htmlspecialchars_decode(input('apply_dinner_food')));
|
|
|
|
|
|
/*判断是否未志愿者*/
|
|
|
$Volunteer=new VolunteerModel();
|
|
|
$where['user_id']=$userId;
|
...
|
...
|
@@ -659,6 +663,9 @@ class IndexController extends RestBaseController |
|
|
$data['apply_stay']=html_entity_decode(htmlspecialchars_decode(input('apply_stay')));
|
|
|
$data['apply_food']=html_entity_decode(htmlspecialchars_decode(input('apply_food')));
|
|
|
|
|
|
$data['apply_lunch_food']=html_entity_decode(htmlspecialchars_decode(input('apply_lunch_food')));
|
|
|
$data['apply_dinner_food']=html_entity_decode(htmlspecialchars_decode(input('apply_dinner_food')));
|
|
|
|
|
|
$result=$Join->insert($data);
|
|
|
if ($result>0){
|
|
|
$this->success('报名成功,请等待审核!');
|
...
|
...
|
|