if(strtolower($_SERVER['REQUEST_METHOD']) == 'post'){
if($_W['member']['uid']!=$_GPC['uid']){
$data['result'] = 2;
$data['data'] = '非法修改会员信息';
exit(json_encode($data));
}
$fields = array(
'realname' => $_GPC['realname'],
'mobile' =>$_GPC['mobile'],
'nickname' =>$_GPC['nickname'],
'company' =>$_GPC['company'],
'position' =>$_GPC['position']
);
$result =pdo_update('mc_members', $fields, array('uid' => $_GPC['uid'], 'uniacid' => $_W['uniacid']));
$data['result'] = 1;
$data['data'] = '保存成功';
cache_delete(cache_system_key('memberinfo', array('uid' => $_GPC['uid'])));
echo json_encode($data);
}else{
$profile = mc_fetch($_W['member']['uid']);
include $this->template('mysetting');
}
其中cache_delete是删除当前会员信息数据缓存
cache_delete(cache_system_key('memberinfo', array('uid' => $_GPC['uid'])));
// 重点实现的查询条件在这里 $condition =
最近采用的微擎模块万能表单无法在手机端普通浏览器上传图片,查看代码发现只考虑了微信下的上传,于是对upimg函数添加h5浏览器的上传方法。