client_type_array)) { ds_json_encode(10001, lang('param_error')); } $mbusertoken_model = model('mbusertoken'); if ($this->member_info['member_name'] == trim(input('post.username'))) { $condition = array(); $condition[] = array('member_id', '=', $this->member_info['member_id']); $condition[] = array('member_clienttype', '=', input('post.client')); $mbusertoken_model->delMbusertoken($condition); session(null); //删除session中的member_id下,因为次登录时要整合cookie中的商品到数据库中 ds_json_encode(10000, '', '', '', true); } else { ds_json_encode(10001, lang('param_error')); } } }