...
|
...
|
@@ -226,13 +226,13 @@ class MemberCenterController extends RestBaseController |
|
|
$volunteerModel = new VolunteerModel();
|
|
|
$result1 = $volunteerModel->findData(array('user_id'=>$user_id));
|
|
|
//判断该用户是否提交过
|
|
|
// if(!empty($result1)){
|
|
|
// $data['update_time'] = time();
|
|
|
// $volunteerModel->updateData(array('user_id'=>$user_id),$data);
|
|
|
// }else{
|
|
|
if(!empty($result1)){
|
|
|
$data['update_time'] = time();
|
|
|
$volunteerModel->updateData(array('user_id'=>$user_id),$data);
|
|
|
}else{
|
|
|
$data['create_time'] = time();
|
|
|
$volunteerModel->insertData($data);
|
|
|
// }
|
|
|
}
|
|
|
$this->success('提交成功!');
|
|
|
}
|
|
|
/**
|
...
|
...
|
|