$data['photo_list'][] = array('photo_url' => $val); } } $data['avg_price'] = intval($_GPC['avg_price']); if (empty($_GPC['open_time_start']) || empty($_GPC['open_time_end'])) { message('营业时间不能为空'); } else { $data['open_time'] = $_GPC['open_time_start'] . '-' . $_GPC['open_time_end']; } $data['recommend'] = urlencode(trim($_GPC['recommend'])); $data['special'] = trim($_GPC['special']) ? urlencode(trim($_GPC['special'])) : message('特色服务不能为空'); $data['introduction'] = urlencode(trim($_GPC['introduction'])); $data['poi_id'] = $location['location_id']; load()->classs('coupon'); $acc = new coupon($acid); $status = $acc->LocationEdit($data); if (is_error($status)) { message($status['message'], '', 'error'); } $data['photo_list'] = iserializer($_GPC['photo_list']); unset($data['poi_id']); pdo_update('coupon_location', $data, array('uniacid' => $_W['uniacid'], 'id' => $id)); message('更新门店信息成功,微信官方审核通过后,将会生效', referer(), 'success'); } } if ($do == 'location_view') { load()->func('tpl'); $id = intval($_GPC['id']); $location = pdo_fetch('SELECT * FROM ' . tablename('coupon_location') . ' WHERE uniacid = :aid AND id = :id', array(':aid' => $_W['uniacid'], ':id' => $id)); if (empty($location)) { message('门店不存在或已删除', referer(), 'error');