作者 王晓刚
1 个管道 的构建 通过 耗费 2 秒

·

... ... @@ -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('提交成功!');
}
/**
... ...
... ... @@ -156,7 +156,7 @@
</td>
</tr>
<tr>
<th width="100">详细地址<span class="form-required">*</span></th>
<th width="100">服务区域<span class="form-required">*</span></th>
<td>
<input class="form-control" type="text" name="address"
id="address" value="{$data.address}" placeholder="请输入详细地址" disabled/>
... ...